Skip to content

Commit ff37492

Browse files
committed
fix(ci): use shell-globbed test file list
node --test <dir> only auto-discovers on Node 21+; on the 18/20 matrix legs it treated test/ as a module path and threw MODULE_NOT_FOUND. Switch to test/*.test.mjs so the shell expands an explicit file list (works on all engines, excludes helpers.mjs).
1 parent 758085c commit ff37492

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
# Black-box suite — drives the real CLI as a subprocess against temp repos.
3131
- name: Run tests
32-
run: node --test test/
32+
run: node --test test/*.test.mjs
3333

3434
# Smoke: the binary builds + prints a hub map against agentmap's own repo.
3535
- name: Smoke (--hubs on self)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"scripts": {
2121
"map": "node agentmap.mjs",
22-
"test": "node --test test/"
22+
"test": "node --test test/*.test.mjs"
2323
},
2424
"engines": {
2525
"node": ">=18"

0 commit comments

Comments
 (0)