add script for code coverage

It is not easy to remember --watchAll=false

https://github.com/facebook/create-react-app/issues/6888
This commit is contained in:
David Lechner
2020-05-20 16:30:39 -05:00
committed by David Lechner
parent 9257053905
commit 8a90acde8b
+1
View File
@@ -43,6 +43,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=./test-env.js",
"coverage": "react-scripts test --env=./test-env.js --coverage --watchAll=false",
"eject": "react-scripts eject",
"lint": "tsc --noEmit && eslint '*/**/*.{js,ts,tsx}' --quiet --fix"
},