mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
0cff8063c5
* test: add coverage exlude * chore: update
38 lines
802 B
TypeScript
38 lines
802 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import Vue from '@vitejs/plugin-vue'
|
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
import VueMacros from 'unplugin-vue-macros/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
VueMacros({
|
|
setupComponent: false,
|
|
setupSFC: false,
|
|
plugins: {
|
|
vue: Vue(),
|
|
vueJsx: VueJsx(),
|
|
},
|
|
}),
|
|
],
|
|
optimizeDeps: {
|
|
disabled: true,
|
|
},
|
|
test: {
|
|
clearMocks: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
reporters: ['default'],
|
|
testTransformMode: {
|
|
web: ['*.{ts,tsx}'],
|
|
},
|
|
coverage: {
|
|
reporter: ['text', 'json-summary', 'json'],
|
|
exclude: [
|
|
'play/**',
|
|
'packages/locale/lang/**',
|
|
'packages/components/*/style/**',
|
|
],
|
|
},
|
|
},
|
|
})
|