Desktop test execution now preserves CI reporter and JSON output flags. - Forward caller-selected Vitest reporters and output files through the desktop test wrapper. - Add coverage for reporter syntax and shard timing command forwarding. - Document desktop timing artifact requirements. Files changed: docs/testing.md | 7 ++++- packages/desktop/scripts/__tests__/test-args.test.ts | 36 ++++++++++++++++++++++ packages/desktop/scripts/test-args.ts | 13 ++++++++ packages/desktop/scripts/test.ts | 3 +- scripts/__tests__/ci-test-shard.test.mjs | 9 ++++++ 5 files changed, 66 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-8560 Fusion-Task-Lineage: 2a89b28d-39f6-4949-aec2-1123c36126cf Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
19 lines
637 B
TypeScript
19 lines
637 B
TypeScript
import { buildDesktopVitestArgs } from "./test-args";
|
|
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", buildDesktopVitestArgs(process.argv.slice(2)), packageRoot);
|
|
}
|
|
|
|
void main().catch((error) => {
|
|
console.error("[desktop:test] Test run failed", error);
|
|
process.exitCode = 1;
|
|
});
|