From 9dde190181d2de2d6d4dd12622ba8b2f0b2f5239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Tue, 3 Aug 2021 19:40:52 +0200 Subject: [PATCH] Report jest coverage. Add report to .gitignore. Please note, it only reports on touched files. Partially addreses https://github.com/woocommerce/google-listings-and-ads/issues/864 --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9e3884cc03..7983e01658 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ build-module build-style languages/* !languages/README.md +coverage # Directories/files that may appear in your environment .DS_Store diff --git a/package.json b/package.json index c185d646f5..31607760d7 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "docker:down": "npx wc-e2e docker:down", "test:e2e": "npx wc-e2e test:e2e", "test:e2e-dev": "npx wc-e2e test:e2e-dev", - "test-unit": "wp-scripts test-unit-js", + "test-unit": "wp-scripts test-unit-js --coverage", "test-unit:watch": "npm run test-unit -- --watch", "test-proxy": "node ./tests/proxy" },