From 1c2aebca489f8a50e57a1c40ec57ec322de3397a Mon Sep 17 00:00:00 2001 From: nicholas-codecov Date: Thu, 19 Sep 2024 09:48:43 -0300 Subject: [PATCH] tweak reporters --- vitest.config.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vitest.config.mjs b/vitest.config.mjs index a84a5dae97..2c9cfdaceb 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -30,11 +30,15 @@ const EXCLUDE_FROM_COVERAGE = [ ] const VitestConfig = defineConfig((config) => { - const reporters = [] + const reporters = ['basic'] if (process.env.ENABLE_TEST_REPORTER) { reporters.push(['junit', { outputFile: 'reports/junit/junit.xml' }]) } + if (process.env.GITHUB_ACTIONS) { + reporters.push('github-actions') + } + const env = loadEnv(config.mode, process.cwd(), 'REACT_APP') return {