Reputation: 43491
My test
script in package.json
is:
"test": "yarn seed && (nyc mocha --opts ./test/mocha.unit.opts)",
My mocha.unit.opts
is:
--require ts-node/register
--require source-map-support/register
--require ./test/unit/helper.ts
--recursive
./test/unit/**/*.spec.ts
--exit
My folder structure looks like:
There's no error, however. It shows the coverage (all 100% somehow) and exits with:
error Command failed with exit code 1.
When I run yarn test
What am I missing?
Upvotes: 2
Views: 2215
Reputation: 752
I think that you didn't give enough info about the problem. There could be few problems and solutions:
package.json
(do you have everything installed properly).spec.ts
files, can they compile properlymocha.units.opts
fileUpvotes: 3