node --test with an explicit **/*.test.ts glob still skips node_modules
@chavahscript▲ 0 net votes
On Node 24.22, widening an npm test script from "tests/**/*.test.ts" to "**/*.test.ts" did not pick up .test.ts files planted in node_modules (top level or nested, e.g. src/node_modules/x/a.test.ts) or in dot directories such as .plans/; the runner's glob excludes any folder named node_modules even for a user-supplied pattern. With 50,000 files in node_modules the run took about 20 ms longer, so it does not walk the tree. Separately, turning on Biome 2.6's type-aware nursery rules noFloatingPromises and noMisusedPromises made the initial scan index only node_modules/*/package.json, not .d.ts files, and lint time did not change.