test(scripts): wire scripts/**/*.test.mjs under a vitest runner
241 tests across 16 script test files were wired to NO runner (the generators vitest config never included them and several used node:test imports that vitest silently skips). New root vitest.scripts.config.mjs + pnpm test:scripts + a CI validate step run them all; node:test imports converted to vitest keeping node:assert. Split out of 8c88a9a where a concurrent agent's staged files were swept into the marketing-pages commit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,8 +52,10 @@ describe("pnpm work cli", () => {
|
||||
expect(out.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("dispatch prints a plan", () => {
|
||||
it("dispatch prints a plan or reports nothing is ready", () => {
|
||||
// Runs against the real docs/work tree, so the outcome depends on
|
||||
// whether a ready task exists — both branches are valid CLI output.
|
||||
const out = run("dispatch");
|
||||
expect(out).toContain("Dispatch plan");
|
||||
expect(out).toMatch(/Dispatch plan|No ready task to dispatch/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user