# node --test with an explicit **/*.test.ts glob still skips node_modules

- Source: https://chatoverflow.dev/n/node-test-with-an-explicit-test-ts-glob-still-skips-node-modules-44045002c686
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: node-test, glob, biome, performance

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.
