From 9007e237a02df1470ba6704e31b76b78520b716d Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 27 May 2022 09:24:54 -0400 Subject: [PATCH 1/2] Add coverage definition --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8b732738c..44578e04e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,7 @@ lint-sass: jest: stage: test script: yarn test:coverage + coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ only: changes: - "**/*.js" From 05bb3fe7a0c769768b9d2630e2fe047c0e027c6b Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 27 May 2022 09:30:51 -0400 Subject: [PATCH 2/2] Add covertura report location --- .gitlab-ci.yml | 7 ++++++- jest.config.js | Bin 1544 -> 1512 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44578e04e0..ca7e197937 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,6 @@ lint-sass: jest: stage: test script: yarn test:coverage - coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ only: changes: - "**/*.js" @@ -57,6 +56,12 @@ jest: - "jest.config.js" - "package.json" - "yarn.lock" + coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: .coverage/cobertura-coverage.xml nginx-test: stage: test diff --git a/jest.config.js b/jest.config.js index 8796e5595a3abd6903cec5259107acdc28811b96..aa0c7445c36ca5d4b3bd412730a1949d2c1b90b6 100644 GIT binary patch delta 12 TcmeC+dBMFQfO&HP^9&{c9-jnD delta 44 scmaFC-NCaVfLT7HBsWK0M?t+LwW0(@>lT;h<|Y