Skip to content

Commit

Permalink
factoring out coverage scripts so that mocha with ts-node can work wi…
Browse files Browse the repository at this point in the history
…th vscode debugger
  • Loading branch information
deyaaeldeen committed Jul 21, 2020
1 parent ea51cb6 commit 78521a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sdk/core/core-arm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
"test": "npm run build && npm run unit-test && npm run integration-test",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"",
"unit-test:node": "mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"",
"cover:unit:node": "nyc npm run unit-test:node",
"cover:report": "nyc report --reporter=lcov --reporter=text",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean"
},
Expand Down
4 changes: 3 additions & 1 deletion sdk/core/core-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
"test": "npm run build:test && npm run unit-test && npm run integration-test",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "node ./node_modules/karma/bin/karma start karma.conf.ts --browsers ChromeNoSecurity --single-run",
"unit-test:node": "cross-env TS_NODE_FILES=true nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"",
"unit-test:node": "cross-env TS_NODE_FILES=true mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"",
"cover:unit:node": "nyc npm run unit-test:node",
"cover:report": "nyc report --reporter=lcov --reporter=text",
"check:packagejsonversion": "ts-node ./.scripts/checkPackageJsonVersion.ts",
"check:foronlycalls": "ts-node ./.scripts/checkForOnlyCalls.ts",
"check:everything": "ts-node ./.scripts/checkEverything.ts",
Expand Down

0 comments on commit 78521a5

Please sign in to comment.