From b58d159c2a1ae91a0092c2f51c4ec28144f7e837 Mon Sep 17 00:00:00 2001 From: Steve Kellock Date: Sat, 2 Dec 2017 08:27:53 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Teaches=20jest=20about=20source?= =?UTF-8?q?=20maps=20and=20thresholds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 11 ++++++++++- tsconfig.json | 5 +++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f7bdaf5..f3b91ef 100644 --- a/package.json +++ b/package.json @@ -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" @@ -59,6 +59,15 @@ "testPathIgnorePatterns": [ "__mocks__" ], + "coverageThreshold": { + "global": { + "statements": 84, + "branches": 77, + "lines": 85, + "functions": 81 + } + }, + "mapCoverage": true, "moduleFileExtensions": [ "ts", "tsx", diff --git a/tsconfig.json b/tsconfig.json index e1e71ec..7cbaa0a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,9 +21,10 @@ "allowSyntheticDefaultImports": true, // Don't let sneaky null/undefined through - "strictNullChecks": true + "strictNullChecks": true, + "sourceMap": true }, "include": [ - "./src/**/*" + "src" ] }