Repository navigation
Commit 1010447
committed
Quote the test glob so the runner finds files on Node 24
CI failed on the Test step: node --test lib/ was resolved as a module path
rather than a directory to search, and Node 24 has no directory discovery —
the argument is matched as a literal glob, resolves to the directory itself,
and then gets run as a test file (nodejs/node#64555).
The local machine is on Node 26, where the same command worked, which is why
it passed here and failed there. The repo pins 24.x in engines and CI, and
that pin is deliberate: a previous commit moved CI to 24 because it had been
validating a runtime nothing deployed on.
node --test "lib/*.test.ts" is the documented form. The quotes matter and
have to be double: an unquoted pattern is expanded by the shell rather than
by Node, which is why it works interactively and fails under a package
script on a different shell.
Verified on node 24.20.0, the version CI runs: the directory form fails with
MODULE_NOT_FOUND, the quoted glob passes 17. The full gate — lint, typecheck,
test, build — passes on 24 as well as on the local 26.1 parent fd06ce4 commit 1010447
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments