Compare commits

...

1 Commits

Author SHA1 Message Date
jackwener fb389f39f1 fix(tests): update E2E exit code assertions for usage errors
Argument/usage errors now correctly exit with code 2 (EX_USAGE) since
the exit-codes feature landed. Update the two affected E2E assertions:
- unknown command → 2 (usage error, not generic failure)
- plugin update without args → 2 (ArgumentError)
2026-03-28 23:37:13 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
});
});
+1 -1
View File
@@ -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');
});
});