element-plus/vitest.config.ts

33 lines
683 B
TypeScript
Raw Normal View History

2022-06-13 23:06:41 +08:00
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: ['json', 'default'],
transformMode: {
web: [/\.[jt]sx$/],
},
coverage: {
reporter: ['text', 'json-summary', 'json'],
},
},
})