From ac6f6fbfb9d2a375177d80ef7ed8e1c2c4a75b9c Mon Sep 17 00:00:00 2001 From: tobewhatwewant Date: Tue, 8 Jan 2019 08:18:06 +0800 Subject: [PATCH] :bug:(source-map): Cannot find module './lib/source-map-generator' from 'source-map.js' solved by (facebook/jest#6514) --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 22d74a8..87cfc4e 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ } }, "jest": { - "verbose": true, "roots": [ "test" ], @@ -77,7 +76,9 @@ ], "moduleFileExtensions": [ "ts", - "tsx" + "tsx", + "js", + "jsx" ], "coverageDirectory": "./coverage/", "collectCoverage": true, @@ -89,7 +90,7 @@ ], "coverageThreshold": { "global": { - "branches": 90, + "branches": 80, "functions": 90, "lines": 90, "statements": -10