Skip to content

Commit

Permalink
🔧 Teaches jest about source maps and thresholds (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
skellock authored and GantMan committed Dec 2, 2017
1 parent f153dfc commit 57ca798
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint": "tslint -p .",
"newclear": "rm -rf node_modules && yarn && tsc",
"watch": "jest --watch",
"coverage": "jest --coverage",
"coverage": "jest --no-cache --ci --coverage",
"snapupdate": "jest -u",
"welcome": "yarn tsc && npm link",
"serve:docs": "docsify serve docs"
Expand Down Expand Up @@ -59,6 +59,15 @@
"testPathIgnorePatterns": [
"__mocks__"
],
"coverageThreshold": {
"global": {
"statements": 84,
"branches": 77,
"lines": 85,
"functions": 81
}
},
"mapCoverage": true,
"moduleFileExtensions": [
"ts",
"tsx",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"allowSyntheticDefaultImports": true,

// Don't let sneaky null/undefined through
"strictNullChecks": true
"strictNullChecks": true,
"sourceMap": true
},
"include": [
"./src/**/*"
"src"
]
}

0 comments on commit 57ca798

Please sign in to comment.