I had to switch to windows as my main dev environment recently. The npm script I use to run my tests is sligthly different than on Linux. On Windows, I have to use:
{
test: "nodemon --ignore package.json --ignore 'README.md' --exec \"mocha -R min tests\\*\\*.test.js\""
}
For me, the difference with linux were:
Use the escaped double quotes instead of the simple quotes
- Change the regex to include the end of the file pattern (on Linux, I didn't need the
*.test.js
) - Once those changes done, it worked like a charm
I hope it can help!
Comments
Post a Comment