我正在关注这个例子:http ://brianstoner.com/blog/testing-in-nodejs-with-mocha/
我在我的根目录中定义了一个 Makefile:
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
但是当我运行'make test'时,它会显示“make: Nothing to be done for 'test'。”