Configuring unit tests for the adapter:
Add a Makefile:
test:
@./node_modules/.bin/mocha -u tdd --reporter spec
.PHONY: test
In package.json, configure the test script:
"scripts": {
"test": "make test"
}
Running npm test
will then run make test
, which will invoke mocha to run all the tests under /test.