Mocha Error: No test files found: "test"
I have a laravel application where has node js installed in the Forum dictory.
In the Forum, I have mocha test file called "server.test.js" on "test" directory.
I try to run the test with this command: ./Forum/node_modules/mocha/bin/mocha
But I am getting this error:
Error: No test files found: "test"
@rid3638 It seems server.test.js file is not found in the test directory.
If you have the file in the test directory, Alternatively you can run the npm test inside the /forum directory.
- Go into
cd forum directory
- Then run
npm test
Please or to participate in this conversation.