npm glob pattern not matching subdirectories

后端 未结 3 650
面向向阳花
面向向阳花 2020-12-17 09:48

In my package.json, I have a scripts block that uses **/*Test.js to match files. When run via npm, they do not match sub-directories m

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 10:13

    The glob expansion is actually done by your shell and that's why it works from the command line.

    You can do mocha --recursive and point at your test directory.

提交回复
热议问题