FN-5849: shard dashboard quality Vitest runs
Split the dashboard quality Vitest lane into bounded heap-managed shards to avoid signal exits. - replace the single dashboard quality test command with sequential app and API shard scripts - add a heap wrapper plus Vitest config shard definitions for foundation, component, App, ChatView, and SettingsModal coverage - add guard tests for the sharded dashboard test configuration and restore spinner-animation.css.test.ts to foundation-ui coverage - update the CLI package-config test expectations for the new dashboard test script layout Files changed: packages/cli/src/__tests__/package-config.test.ts | 8 +- packages/dashboard/package.json | 18 +- packages/dashboard/scripts/run-vitest-with-heap.mjs | 41 ++++ packages/dashboard/src/__tests__/dashboard-test-config-guard.test.ts | 77 ++++++ packages/dashboard/vitest.config.ts | 273 ++++++++++++++++++++- 5 files changed, 407 insertions(+), 10 deletions(-) Fusion-Task-Id: FN-5849 Fusion-Task-Lineage: 522f3963-4647-4a59-bb6b-a3dacfbf620e
This commit is contained in:
@@ -272,10 +272,14 @@ describe("Workspace bootstrap script contract", () => {
|
||||
|
||||
it("keeps dashboard's default test lane curated with explicit deep coverage", () => {
|
||||
const defaultTest = dashboardPkg.scripts?.test;
|
||||
const defaultAppQuality = dashboardPkg.scripts?.["test:quality:app"];
|
||||
const defaultApiQuality = dashboardPkg.scripts?.["test:quality:api"];
|
||||
const deepTest = dashboardPkg.scripts?.["test:deep"];
|
||||
|
||||
expect(hasProjectArg(defaultTest, "dashboard-app-quality")).toBe(true);
|
||||
expect(hasProjectArg(defaultTest, "dashboard-api-quality")).toBe(true);
|
||||
expect(defaultTest).toBe("pnpm run test:quality:app && pnpm run test:quality:api");
|
||||
expect(defaultAppQuality).toContain("test:quality:app:foundation-api");
|
||||
expect(defaultAppQuality).toContain("test:quality:app:settings");
|
||||
expect(hasProjectArg(defaultApiQuality, "dashboard-api-quality")).toBe(true);
|
||||
expect(hasProjectArg(defaultTest, "dashboard-app")).toBe(false);
|
||||
expect(hasProjectArg(defaultTest, "dashboard-api")).toBe(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user