mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
test(cli): ruv-fann-wsp load test skips when the optional packages are not installed
The repo-root npm ci job (ci.yml Test Suite) does not install the three optional ruv-fann-wsp* packages (they are in the CLI's pnpm lock only), so 'loads all three optional packages' failed on the release PR's first CI run. When they are absent the test now asserts the explicit 'not installed' report and skips; the missing-package tests cover the path with an injected importer. Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
1 parent
b048f27b62
commit
23fd533209
1 file changed
+8
-1
@@ -36,8 +36,15 @@ async function mods(): Promise<WspModules> {
|
||||
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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user