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
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 09:56:28 -07:00
committed by gsxdsm
parent f761f771d1
commit 477f79f3eb
6 changed files with 111 additions and 55 deletions

View File

@@ -0,0 +1,17 @@
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;
});