From 7fa0ba9dc982584247e3de28295158a3d3d91f19 Mon Sep 17 00:00:00 2001 From: Mats Andreassen Date: Mon, 16 Nov 2020 10:56:25 +0100 Subject: [PATCH] Added coverage test --- .gitignore | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 7005be7..228e8db 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ dist npm-debug.log* yarn-debug.log* yarn-error.log* + +coverage \ No newline at end of file diff --git a/package.json b/package.json index af167c9..c61b1cd 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "test:lint": "standard ./src/**/*.js", "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom", + "test:coverage": "react-scripts test --env=jsdom --coverage", "predeploy": "cd example && npm install && npm run build", "deploy": "gh-pages -d example/build", "refresh": "rm -rf node_modules && rm package-lock.json && npm i"