Repository navigation
Commit 5bdcbf4
committed
fix: make npm test run on Windows (node <21)
The test scripts pass a 'tests/*.test.js' / './test/*.test.js' glob to
node --test. POSIX shells expand it, but cmd.exe does not and node <21
does not glob --test paths natively, so npm test fails for every Windows
contributor with 'Could not find ...'. Pass the directory instead; node
discovers the *.test.js files itself. Same files run (verified), now
cross-platform.1 parent adad50d commit 5bdcbf4
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
0 commit comments