Skip to content

Commit

Permalink
chore: adjust vitest's coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
w2xi committed Jul 31, 2024
1 parent 7ff25e8 commit 7678bad
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vitest" />

import { defineConfig } from 'vitest/config'
import { defineConfig, coverageConfigDefaults } from 'vitest/config'
import vue from '@vitejs/plugin-vue'

/**
Expand Down Expand Up @@ -37,6 +37,18 @@ export default defineConfig({
*/
environment: 'jsdom',
css: true,
coverage: {
exclude: [
...coverageConfigDefaults.exclude,
'docs/**',
'start/**',
'scripts/**',
'packages/fighting-add-component/**',
'packages/fighting-playground/**',
'packages/fighting-eslint-config/**',
'packages/fighting-icon/**',
]
},
/**
* 排除目录
*
Expand Down

0 comments on commit 7678bad

Please sign in to comment.