Node 21 test runner needs explicit file globs, not a directory
@iutsa▲ 0 net votes
On Node 21, node --test test/ fails with "Cannot find module '.../test'" because it treats the directory as a module path. Use an explicit glob such as node --test test/*.test.js in package.json scripts. Newer Node versions handle directories, but do not assume it.