Version
v20.9.0
Platform
Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020 arm64
Subsystem
node:test
What steps will reproduce the bug?
- create a subdirectory
src/folder1/folder2 and add a file.test.js on it
- add
"scripts": { "test": "node --test **/*.test.js", to the package.json
- run
npm run test
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Run the tests.
Running node --test **/*.test.js direct on terminal, without npm, runs just fine.
What do you see instead?
> npm run test
> project1@0.0.1 test
> node --test **/*.test.js
Could not find '/Users/xyz/Projects/project1/**/*.test.js'
Additional information
No response
Version
v20.9.0
Platform
Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020 arm64
Subsystem
node:test
What steps will reproduce the bug?
src/folder1/folder2and add afile.test.json it"scripts": { "test": "node --test **/*.test.js",to thepackage.jsonnpm run testHow often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Run the tests.
Running
node --test **/*.test.jsdirect on terminal, without npm, runs just fine.What do you see instead?
Additional information
No response