Skip to content

Commit

Permalink
tweak reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Sep 19, 2024
1 parent 9f73de4 commit 1c2aebc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1c2aebc

Please sign in to comment.