What is your opinion on splitting the root test directory into
test/
func/
... everything that is currently under test/
unit/
... root directory for unit tests run by mocha
Currently I've added a mocha run script to package.json.
"mocha": "./node_modules/mocha/bin/mocha --require babel-core/register"
and run some unit tests by:
npm run mocha -- test/fixtures/qaFixturesTest.js --watch
That's a quite manual way and it would probably be nicer api for our users if there were run scripts like npm run test:unit, npm run test:func. npm run test would run both of them.