I’m following this example: http://brianstoner.com/blog/testing-in-nodejs-with-mocha/
I defined a Makefile in my root directory:
REPORTER = dot
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--watch
.PHONY: test test-w
But when I run ‘make test’ it says “make: Nothing to be done for `test’.”
Turns out Makefiles are tab-sensitive — and those were clobbered when I cut-n-paste the file…
In vi, i turned on tabs and spacing to fix it:
Now you can retab the file and ensure you are doing it correctly.