diff --git a/v3/@claude-flow/cli/__tests__/ruv-fann-wsp-adr528.test.ts b/v3/@claude-flow/cli/__tests__/ruv-fann-wsp-adr528.test.ts index dff65b0224..3804badbfa 100644 --- a/v3/@claude-flow/cli/__tests__/ruv-fann-wsp-adr528.test.ts +++ b/v3/@claude-flow/cli/__tests__/ruv-fann-wsp-adr528.test.ts @@ -36,8 +36,15 @@ async function mods(): Promise { beforeEach(() => __resetWspForTests()); describe('loadWsp', () => { - it('loads all three optional packages', async () => { + // The three packages are optionalDependencies. The repo-root `npm ci` job (ci.yml "Test Suite") does not install + // them, so there the contract is the explicit "not installed" report, not a successful load; the + // missing-package tests below cover that path with an injected importer. + it('loads all three optional packages when they are installed', async ({ skip }) => { const l = await loadWsp(); + if (!l.available) { + expect(l.reason).toMatch(/is not installed \(optional dependency of @claude-flow\/cli\)/); + skip(); + } expect(l.available).toBe(true); });