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
18 lines
587 B
TypeScript
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;
|
|
});
|