Closed koji-k closed 3 years ago
That seems odd, what's your node/npm versions?
Looking into it, seems like it's expanded differently in the script and in the console, especially regarding arbitrary depth.
A workaround is to make sure the glob is compatible with both: retest tests/*.bs.js tests/**/*.bs.js
(the files will naturally be deduplicated)
Thank you!
That workaround works fine.
(I wrote tests/*.bs.js tests/*/*.bs.js tests/*/*/*.bs.js
. then all tests that is on my structure was executed.)
I created following sample unit test files.
and my
scripts
onpackage.json
It will be executed tests on
tests/*.bs.js
only. so, sub directories are ignored.But, when i execute
retest
directlly, all tests in sub directories executed.(I expect this behavior)This behavior is not clear to me... Is this because retest or npm ...?