diff --git a/tests/e2e/management.test.ts b/tests/e2e/management.test.ts index 3e3ab19f..8a633340 100644 --- a/tests/e2e/management.test.ts +++ b/tests/e2e/management.test.ts @@ -101,6 +101,6 @@ describe('management commands E2E', () => { // ── unknown command ── it('unknown command shows error', async () => { const { stderr, code } = await runCli(['nonexistent-command-xyz']); - expect(code).toBe(1); + expect(code).toBe(2); }); }); diff --git a/tests/e2e/plugin-management.test.ts b/tests/e2e/plugin-management.test.ts index 4702feb9..177d41e2 100644 --- a/tests/e2e/plugin-management.test.ts +++ b/tests/e2e/plugin-management.test.ts @@ -134,7 +134,7 @@ describe('plugin management E2E', () => { it('plugin update without name or --all shows error', async () => { const { stderr, code } = await runPluginCli(['plugin', 'update']); - expect(code).toBe(1); + expect(code).toBe(2); expect(stderr).toContain('specify a plugin name'); }); });