From 577e2777e10b6e9fedea0c21f96bbfa480047d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 8 Apr 2025 10:42:40 +0200 Subject: [PATCH] ci: Generate jest-junit reports only on CI (no-changelog) (#14463) Co-authored-by: Charlie Kolb --- .gitignore | 1 + jest.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 10baf31d87..d2b76f69a3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ CHANGELOG-*.md *.mdx build-storybook.log *.junit.xml +junit.xml diff --git a/jest.config.js b/jest.config.js index 9cd045892c..08f7b93e90 100644 --- a/jest.config.js +++ b/jest.config.js @@ -32,11 +32,11 @@ const config = { collectCoverage: isCoverageEnabled, coverageReporters: ['text-summary', 'lcov', 'html-spa'], collectCoverageFrom: ['src/**/*.ts'], - reporters: ['default', 'jest-junit'], workerIdleMemoryLimit: '1MB', }; if (process.env.CI === 'true') { + config.reporters = ['default', 'jest-junit']; config.coverageReporters = ['cobertura']; }