Closed wbprice closed 7 years ago
In a freshly scaffolded Trails app with one generated model, the model tests aren't seen by mocha when the developer runs npm test.
mocha
npm test
// package.json . . . "scripts": { "test": "eslint . && mocha" }, . . .
Could be fixed by adding test --recursive to the test script or by adding a mocha configuration file.
test --recursive
// package.json . . . "scripts": { "test": "eslint . && mocha test --recursive" }, . . .
@tjwebb do you have any strong opinions about adding flags to the script vs. adding a default configuration file?
Updated my generator and reran. Mocha options file is being generated, so it should work.
In a freshly scaffolded Trails app with one generated model, the model tests aren't seen by
mocha
when the developer runsnpm test
.Could be fixed by adding
test --recursive
to the test script or by adding a mocha configuration file.