I’m trying to run a Mocha .spec file separately through the command line, however I am struggling to do this properly.
I am needing to run a separate file using the command line:
npm run-script test:component:file
then pass in a .spec file that needs running separately, e.g. test_file.spec
I’ve been trying to use –grep then a match using the * character to try and match against the test in the describe block of the .spec file.
Is there a way to do this in Mocha?