Skip to content

Commit

Permalink
Add nyc for code-coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
SukantGujar committed Mar 12, 2019
1 parent a1d2ca7 commit 6262af1
Show file tree
Hide file tree
Showing 4 changed files with 626 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
coverage
.nyc_output
*.log
.env
node_modules
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
coverage
.nyc_output
node_modules
.gitignore
.travis.yml
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"scripts": {
"clean": "rimraf ./dist",
"test": "tsc && mocha dist/**/*.spec.js",
"test": "tsc && nyc --reporter=text mocha dist/**/*.spec.js",
"build:watch": "npx tsc -w",
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
"push": "yarn test && yarn build:prod && yarn publish",
Expand All @@ -28,6 +28,7 @@
"cross-env": "^5.2.0",
"express": "^4.16.4",
"mocha": "^6.0.2",
"nyc": "^13.3.0",
"rimraf": "^2.6.3",
"sinon": "^7.2.7",
"typescript": "^3.3.3333"
Expand Down
Loading

0 comments on commit 6262af1

Please sign in to comment.