Writing a Sails.js Solr adapter

10 thoughts
last posted May 14, 2015, 7:43 p.m.

9 earlier thoughts

0

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.