element-plus/vitest.config.ts
Delyan Haralanov de0ee53cf0
test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00

21 lines
562 B
TypeScript

import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import VueJsx from '@vitejs/plugin-vue-jsx'
import DefineOptions from 'unplugin-vue-define-options/vite'
export default defineConfig({
plugins: [Vue(), VueJsx(), DefineOptions()],
optimizeDeps: {
disabled: true,
},
test: {
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
environment: 'jsdom',
setupFiles: ['./vitest.setup.js'],
transformMode: {
web: [/\.[jt]sx$/],
},
},
})