Inside my package.json file, I currently have the following scripts block:
"scripts": {
"test": "node tests/*-test.js"
}
In the tests
folder, I have files named a-test.js
and b-test.js
. This can be confirmed by using the command ls tests/*-test.js
.
However, when I run npm run test
, only a-test.js
is being executed. Is there a way for me to run all *-test.js
scripts without explicitly listing them? Keep in mind that I may have more than just 2 scripts to run in the future.