Skip to content

Commit

Permalink
build: Streamline mocha config (#1905)
Browse files Browse the repository at this point in the history
* build: Streamline `mocha` config

* fix: Require `--require ts-node/register` first
  • Loading branch information
d-goog authored May 2, 2022
1 parent eee0cf1 commit 64bf0c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@
"google storage",
"storage"
],
"mocha": {
"require": "ts-node/register",
"extension": "ts"
},
"scripts": {
"predocs": "npm run compile",
"docs": "jsdoc -c .jsdoc.js",
"mocha": "mocha --require ts-node/register --extension ts",
"system-test": "npm run mocha -- system-test --timeout 600000 --exit",
"conformance-test": "npm run mocha -- --parallel --require conformance-test/globalHooks.ts conformance-test/",
"test": "c8 npm run mocha -- test",
"system-test": "mocha system-test --timeout 600000 --exit",
"conformance-test": "mocha --parallel --require ts-node/register --require conformance-test/globalHooks.ts conformance-test/",
"test": "c8 mocha test",
"lint": "gts check",
"samples-test": "npm link && cd samples/ && npm link ../ && npm test && cd ../",
"all-test": "npm test && npm run system-test && npm run samples-test",
Expand Down

0 comments on commit 64bf0c9

Please sign in to comment.