From c42d9a27154e99a725ed8dcfca380b658fd6a237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Tue, 2 Jul 2024 17:29:12 +0200 Subject: [PATCH 1/2] frontend: vite.config: Fix coverage report names, and excludes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before the names were cut off. Also node_modules were included. Signed-off-by: René Dudfield --- frontend/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index a5ca91d24f..64ca8edd40 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -51,6 +51,7 @@ export default defineConfig({ ], coverage: { reporter: ['text'], + exclude: ['node_modules/**', 'build/**'] }, restoreMocks: false, setupFiles: ['./src/setupTests.ts'], From 12540011a9f62fd229bf859d2b1d48f5027b1a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Tue, 2 Jul 2024 17:43:51 +0200 Subject: [PATCH 2/2] frontend: vite.config: Fix text reporter on CI so names are readable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Dudfield --- frontend/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 64ca8edd40..871e623ac0 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -50,8 +50,8 @@ export default defineConfig({ }, ], coverage: { - reporter: ['text'], - exclude: ['node_modules/**', 'build/**'] + reporter: [['text', {maxCols: 200}]], + exclude: ['node_modules/**', 'build/**'], }, restoreMocks: false, setupFiles: ['./src/setupTests.ts'],