Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Aug 5, 2024
1 parent f2a6386 commit 31886e4
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions integration-tests/vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { defineConfig } from 'vite'

export default defineConfig({
const config = {
test: {
include: [
process.env.TEST_DIR || 'ci-visibility/vitest-tests/test-visibility*'
],
coverage: {
provider: process.env.COVERAGE_PROVIDER || 'v8',
include: ['ci-visibility/vitest-tests/**'],
reporter: 'text-summary'
}
]
}
})
}

if (process.env.COVERAGE_PROVIDER) {
config.test.coverage = {
provider: process.env.COVERAGE_PROVIDER || 'v8',
include: ['ci-visibility/vitest-tests/**'],
reporter: ['text-summary']
}
}

export default defineConfig(config)

0 comments on commit 31886e4

Please sign in to comment.