Skip to content

Commit

Permalink
test: update coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Apr 17, 2024
1 parent 4283352 commit 4a57772
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { configDefaults } from 'vitest/dist/config'
export default defineVitestConfig({
test: {
coverage: {
provider: 'v8',
reportsDirectory: 'coverage',
reporter: ['text', 'html', 'lcov', 'json'],
exclude: [
...(configDefaults.coverage.exclude ?? []),
'layouts/**',
Expand All @@ -13,6 +16,12 @@ export default defineVitestConfig({
'**/*.config.{js,ts,mts,mjs}',
],
},
globals: true,
reporters: ['verbose', 'json', 'vitest-sonar-reporter'],
outputFile: {
'json': 'coverage/test-report.json',
'vitest-sonar-reporter': 'coverage/test-report.xml',
},
},
// test: {
// dir: 'tests',
Expand Down

1 comment on commit 4a57772

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for morpheme-nuxt-starter-rato ready!

✅ Preview
https://morpheme-nuxt-starter-rato-1sw98plsi-warsonos-projects.vercel.app

Built with commit 4a57772.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.