From 6d856f8913163ff3dd934e6fbf99237279ace98c Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Fri, 29 May 2026 17:26:19 +0800 Subject: [PATCH] build(ci): wire @vue-tui/cli test branch into the ci graph Add a "test" script (vp test --passWithNoTests) to @vue-tui/cli and a ci:test:cli branch (dependsOn ci:build) to the run.tasks graph. No CLI tests exist yet, but wiring the branch now means future CLI tests are covered automatically rather than silently skipped. #26 (item 3). --- packages/cli/package.json | 1 + vite.config.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/packages/cli/package.json b/packages/cli/package.json index a2dc6cb..d75d97d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -21,6 +21,7 @@ "scripts": { "build": "vp pack", "dev": "vp pack --watch", + "test": "vp test --passWithNoTests", "check:type": "tsc --noEmit", "prepublishOnly": "vp run build" }, diff --git a/vite.config.ts b/vite.config.ts index 1ac55b2..c3d7488 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -58,6 +58,13 @@ export default defineConfig({ command: "vp run @vue-tui/runtime-tests#test:pty", dependsOn: ["ci:build"], }, + // cli has no tests yet (test passes with --passWithNoTests), but wiring + // the branch now means future CLI tests are covered automatically rather + // than silently skipped. + "ci:test:cli": { + command: "vp run @vue-tui/cli#test", + dependsOn: ["ci:build"], + }, ci: { command: "echo ci ok", dependsOn: [ @@ -68,6 +75,7 @@ export default defineConfig({ "ci:test:testing", "ci:test:integration", "ci:test:pty", + "ci:test:cli", ], }, },