Skip to content

Commit b05d91a

Browse files
committed
ci: fix helia-interop test discovery on 10.2.2
@helia/interop 10.2.2 dropped `.aegir.js` from its published tarball (ipfs/helia#1001), so aegir falls back to default mocha globs that don't match the `dist/src` layout and reports "No test files found". Supply the glob directly via aegir's `-f` flag so CI no longer depends on the config file shipping.
1 parent 3219aa1 commit b05d91a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/interop.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,16 @@ jobs:
102102
#
103103
# We run aegir directly (instead of helia-interop binary) because only aegir
104104
# supports the --grep/--invert flags needed to exclude specific tests.
105+
#
106+
# TODO: drop `-f 'dist/src/**/*.spec.js'` once @helia/interop re-ships
107+
# `.aegir.js` in its published tarball. The 10.2.2 release
108+
# (https://github.com/ipfs/helia/pull/1001) accidentally dropped
109+
# `.aegir.js` from the package.json `files` array, so aegir falls back
110+
# to its default mocha globs (`dist/test/**/*.spec.js`) which don't
111+
# match helia's actual layout (`dist/src/*.spec.js`) and fails with
112+
# "No test files found". `-f` supplies the glob directly.
105113
- name: Run helia-interop tests (excluding IPIP-499 incompatible test)
106-
run: npx aegir test -t node --bail -- --grep 'should have the same CID after creating a file' --invert
114+
run: npx aegir test -t node --bail -f 'dist/src/**/*.spec.js' -- --grep 'should have the same CID after creating a file' --invert
107115
env:
108116
KUBO_BINARY: ${{ github.workspace }}/cmd/ipfs/ipfs
109117
working-directory: node_modules/@helia/interop

0 commit comments

Comments
 (0)