From cb996a3c7e1843ae4290468d8664844dec087911 Mon Sep 17 00:00:00 2001 From: Joshua Kitenge Date: Mon, 13 Jan 2025 10:07:35 +0000 Subject: [PATCH] - Change codecov to be a dep - Fix linting for the reporter --- package.json | 2 +- vite.config.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6f9065642..5fc34f815 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "type": "module", "private": true, "dependencies": { + "@codecov/vite-plugin": "1.7.0", "@date-io/date-fns": "3.0.0", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", @@ -77,7 +78,6 @@ "packageManager": "yarn@4.6.0", "devDependencies": { "@babel/eslint-parser": "7.25.9", - "@codecov/vite-plugin": "1.7.0", "@eslint/compat": "1.2.4", "@eslint/js": "9.17.0", "@tanstack/eslint-plugin-query": "5.62.1", diff --git a/vite.config.ts b/vite.config.ts index f7d65b7a5..4685535fb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -176,10 +176,9 @@ export default defineConfig(({ mode }) => { reporters: [ 'default', // Extra for codecov test analysis - ...(env.CI - ? [['junit', { outputFile: 'test-report.junit.xml', silent: true }]] - : []), + ...(env.CI ? ['junit'] : []), ], + outputFile: env.CI ? { junit: 'test-report.junit.xml' } : undefined, }, }; });