I am currently using Nitrous, which shouldn\'t matter, but I needed to install mocha so I typed in:
npm install - g mocha.
Everything insta
For those having mocha installed and have makefile like this:
test:
@./node_modules/.bin/mocha -u tdd
.PHONY: test
but getting this error:
Error: cannot resolve path (or pattern) 'test'
you need to add folder "test" in the project folder. And your test files in that test folder
E.G.
/home/you/nodejs/chapter3
├── lib
├── makefile
├── node_modules
├── package.json
└── test
├── db.test.js