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:
committed by
gsxdsm
parent
f761f771d1
commit
477f79f3eb
17
packages/desktop/scripts/test.ts
Normal file
17
packages/desktop/scripts/test.ts
Normal 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;
|
||||
});
|
||||
Reference in New Issue
Block a user