Use source-map-support package to include correct line numbers in mocha

This commit is contained in:
Alex Browne
2018-06-06 16:51:22 -07:00
parent 5989844f1c
commit d299458084
18 changed files with 26 additions and 18 deletions

View File

@@ -13,7 +13,7 @@
"test": "yarn run_mocha",
"rebuild_and_test": "run-s clean build test",
"test:circleci": "yarn test:coverage",
"run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
"run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js --bail --exit",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"clean": "shx rm -rf lib scripts",