Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: distinguish server-only audio suites in CI planner contract (#11133)

Adam Eivyaa2959273945
diff --git a/scripts/ci-test-plan.test.js b/scripts/ci-test-plan.test.js
index cad5a4c16f..877aeca46e 100644
--- a/scripts/ci-test-plan.test.js
+++ b/scripts/ci-test-plan.test.js
@@ -1463,12 +1463,12 @@ describe('cross-workspace browser suites (#10312)', () => {
!/\.(?:test|spec)\.[cm]?[jt]sx?$/.test(path) || BROWSER_SUITES.includes(path));
const plan = buildCiTestPlan(inputs.changedFiles, { ...inputs, trackedFiles });
- // The title card suite drives only the server-side runtime script, so a
- // client component change has nothing to select it for.
- const runtimeOnly = 'server/lib/musicVideoTitleCard.browser.test.js';
+ // Server-only media suites do not mount the changed client component.
+ const runtimeOnly = ['server/lib/musicVideoTitleCard.browser.test.js',
+ 'server/services/federatedMedia/sourceAudio.browser.test.js'];
expect(plan.full).toBe(false);
- expect(plan.browserFiles).toEqual(expect.arrayContaining(BROWSER_SUITES.filter((suite) => suite !== runtimeOnly)));
- expect(plan.browserFiles).not.toContain(runtimeOnly);
+ expect(plan.browserFiles).toEqual(expect.arrayContaining(BROWSER_SUITES.filter((suite) => !runtimeOnly.includes(suite))));
+ for (const suite of runtimeOnly) expect(plan.browserFiles).not.toContain(suite);
expect(plan.suiteReasons.browser).toMatch(/browser suite/);
});