Files
fusion/packages/desktop/scripts/test.ts
Fusion (runfusion.ai) 477f79f3eb feat(FN-4737): parameterize worktree-escape test to use configured worktree
Adds parameterized test cases to the worktree-liveness test to exercise different configured `worktreesDir` paths, improving coverage of the worktree escape/isolation path.

Fusion-Task-Id: FN-4737

Fusion-Task-Lineage: 40e262ea-2507-461e-b9f5-940b3b4490f9
2026-05-16 09:56:28 -07:00

18 lines
587 B
TypeScript

import { buildCore, buildDashboard, packageRoot, runWorkspaceBin } from "./workspace-tools";
async function main(): Promise<void> {
console.log("[desktop:test] Building @fusion/core...");
await buildCore();
console.log("[desktop:test] Building @fusion/dashboard...");
await buildDashboard();
console.log("[desktop:test] Running desktop Vitest suite...");
await runWorkspaceBin("vitest", ["run", "--silent=passed-only", "--reporter=dot"], packageRoot);
}
void main().catch((error) => {
console.error("[desktop:test] Test run failed", error);
process.exitCode = 1;
});