I am trying to create a MakeFile to run my Mocha unit tests with NPM. So I have Mocha installed and a unit test created in:
{project_root}/test/test.js
Now, when I try 'make test' Make replies with:
make: Nothing to be done for `test'.
Here's my MakeFile:
test:
@./node_modules/.bin/mocha -u tdd
.PHONY: test
So real basic. I've read that Mocha will run all tests in the 'test' dir automatically. Is my MakeFile syntax incorrect?
Thanks!