Skip to content

Commit

Permalink
chore: use coverageConfigDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 18, 2024
1 parent 369760e commit 3b87ba1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/// <reference types="vitest" />

import vue from '@vitejs/plugin-vue'

import copy from 'rollup-plugin-copy'

import { defineConfig } from 'vite'
import banner from 'vite-plugin-banner'
import dts from 'vite-plugin-dts'

import Inspect from 'vite-plugin-inspect'

import { coverageConfigDefaults } from 'vitest/config'

/* import analyze from 'rollup-plugin-analyzer'
*/ /* import { visualizer } from 'rollup-plugin-visualizer' */
import { bold, gray, lightGreen, yellow } from 'kolorist'
Expand Down Expand Up @@ -44,12 +45,16 @@ export default defineConfig({
Inspect(),
],
test: {
exclude: ['docs/*', 'playground/*', 'dist/*', 'node_modules/*'],
globals: true,
environment: 'jsdom',
globals: true,
coverage: {
reporter: ['text', 'json', 'html'],
exclude: ['node_modules', 'dist', 'docs', 'playground', 'src/**/*.d.ts', 'src/**/*.test.ts'],
provider: 'v8',
exclude: [
...coverageConfigDefaults.exclude,
'playground/**',
'docs/**',
'**/sponsorkit**/**',
],
},
},
build: {
Expand Down

0 comments on commit 3b87ba1

Please sign in to comment.