Мой test
скрипт в package.json
- это:
"test": "yarn seed && (nyc mocha --opts ./test/mocha.unit.opts)",
Мой mocha.unit.opts
:
--require ts-node/register
--require source-map-support/register
--require ./test/unit/helper.ts
--recursive
./test/unit/**/*.spec.ts
--exit
Моя структура папок выглядит следующим образом:
![enter image description here](https://i.stack.imgur.com/72U0G.png)
Там нет ошибки, однако. Он показывает покрытие (все как-то 100%) и завершается с:
error Command failed with exit code 1.
Когда я бегу yarn test
Чего мне не хватает?