mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
28 lines
611 B
TypeScript
28 lines
611 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import Vue from '@vitejs/plugin-vue'
|
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
|
|
export default defineConfig({
|
|
plugins: [Vue(), VueJsx()],
|
|
optimizeDeps: {
|
|
disabled: true,
|
|
},
|
|
test: {
|
|
name: 'unit',
|
|
clearMocks: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
reporters: ['default'],
|
|
coverage: {
|
|
reporter: ['text', 'json-summary', 'json'],
|
|
exclude: [
|
|
'play/**',
|
|
'**/lang/**',
|
|
'packages/components/*/style/**',
|
|
'scripts/**',
|
|
'ssr-testing/**',
|
|
],
|
|
},
|
|
},
|
|
})
|