From 8a90acde8b2be6d272b9f627755d5561a2979616 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 20 May 2020 15:34:51 -0500 Subject: [PATCH] add script for code coverage It is not easy to remember --watchAll=false https://github.com/facebook/create-react-app/issues/6888 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b75a9d6f..f349ee74 100644 --- a/package.json +++ b/package.json @@ -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" },