JavaScript — Unit Testing using Mocha and Chai
NC Patro
1.3K5

Nice article, I really learnt a lot going through it being new to testing. I ran into error when I ran individual tests in the windows 10 laptop.
Warning: Could not find any test files matching pattern: ‘./test/**/*.spec.js’.

I was able to resolve this issue just by removing the quotes in the package.json with no idea just an attempt.

“test”: “mocha ./test/**/*.spec.js”

Can you explain me why I ran into this error and also how I could resolve it ?