Skip to content

Commit

Permalink
test(package.json): added coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedmoussa1 committed Jan 9, 2022
1 parent 43cd2b3 commit 2193b13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
dist/*.js
.env
docs
docs
coverage
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"local:server": "nodemon './src/paymob-marketplace'",
"generate:doc": "jsdoc -c './jsdoc.json'",
"test": "jest --config ./jest.config.json",
"test:watch": "npm run test -- --watch"
"test:watch": "npm run test -- --watch",
"test:coverage": "npm run test -- --coverage"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -72,5 +73,14 @@
"ghooks": {
"pre-commit": "npm run lint"
}
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": ["./src/**"],
"coverageThreshold": {
"global": {
"lines": 10
}
}
}
}

0 comments on commit 2193b13

Please sign in to comment.