Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 293 Bytes
UNITS = $(shell find test -name "*.test.js")
SPECS = $(shell find test -name "*.spec.js")
unit:
NODE_ENV=test ./node_modules/.bin/mocha $(UNITS)
spec:
NODE_ENV=test ./node_modules/.bin/mocha $(SPECS)
test:
NODE_ENV=test ./node_modules/.bin/mocha $(UNITS) $(SPECS)
.PHONY: test unit spec