Skip to content

Commit

Permalink
#157 - adding coverage script (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
obr42 authored Sep 30, 2022
1 parent 9d160b9 commit cd81f8b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,22 @@
"jest": {
"moduleNameMapper": {
"@rjsf/core/lib/utils": "@rjsf/core/dist/cjs/utils"
}
},
"coveragePathIgnorePatterns": [
"node_modules",
"index.ts",
"<rootDir>/src/test",
"<rootDir>/src/types"
],
"coverageThreshold": {
"global": {
"branches": 20,
"functions": 30,
"lines": 50,
"statements": 50
}
},
"coverageReporters": ["text-summary", "html"]
},
"proxy": "http://localhost:2337",
"scripts": {
Expand All @@ -112,6 +127,7 @@
"prepare": "husky install",
"start": "PORT=4000 BROWSER=none react-app-rewired start",
"test": "NODE_ENV=test CI=true react-app-rewired test",
"test-coverage": "NODE_ENV=test CI=true react-app-rewired test -- --coverage",
"test-watch": "NODE_ENV=test react-app-rewired test"
}
}

0 comments on commit cd81f8b

Please sign in to comment.