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", ], }, },