From 9c5d23f0ce7f44e837d9a6b176fb656461253380 Mon Sep 17 00:00:00 2001 From: pku-xht Date: Fri, 7 Aug 2026 17:14:14 +0800 Subject: [PATCH] test(cli): pin removed web config alias --- apps/cli/tests/args.spec.ts | 1 + apps/cli/tests/built-bin.e2e.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cli/tests/args.spec.ts b/apps/cli/tests/args.spec.ts index c9b3dc18f1..c296b23af3 100644 --- a/apps/cli/tests/args.spec.ts +++ b/apps/cli/tests/args.spec.ts @@ -87,6 +87,7 @@ describe('parseDshArgs', () => { expect(exitCode(['web', '--dump-config', '--dump-default-config'])).toBe(1) expect(exitCode(['web', '--dump-default-config', '--patch', 'w.yml'])).toBe(1) expect(exitCode(['web', '--patch='])).toBe(1) + expect(exitCode(['web', '--config', 'w.yml'])).toBe(1) // Boot-free dumps derive no flag patches; silently dropping the flags // would print a tree that differs from the same invocation's boot. expect(exitCode(['web', '--dump-config', '--port', '8080'])).toBe(1) diff --git a/apps/cli/tests/built-bin.e2e.ts b/apps/cli/tests/built-bin.e2e.ts index de44b110a1..9896f4689f 100644 --- a/apps/cli/tests/built-bin.e2e.ts +++ b/apps/cli/tests/built-bin.e2e.ts @@ -185,7 +185,7 @@ describe.skipIf(!existsSync(dshBin))('dsh BUILT bin (node lib/bin.js, no tsx)', expect(help.stdout).toContain('dsh run "run the tests"') expect(help.stdout).toContain('dsh plugin --profile') expect(help.stdout).not.toMatch(/^\s+(?:tui|meta|upgrade)\b/mu) - for (const removed of [['tui'], ['--config', 'x.yml'], ['-p', 'task'], ['--profile', 'headless', 'task']]) { + for (const removed of [['tui'], ['--config', 'x.yml'], ['web', '--config', 'x.yml'], ['-p', 'task'], ['--profile', 'headless', 'task']]) { const result = await runBuiltBin(removed) expect(result.code).toBe(1) }