element-plus/vitest.config.ts
三咲智子 aaf90d99d0
test: switch to vitest (#5991)
* test: use vitest

* test: add script and ci

* chore: improve tsconfig

* refactor: use-form-item

* fix: remove unused

* chore: improve scripts

* test: improve mock

* refactor: change coverage
2022-02-21 14:28:22 +08:00

14 lines
407 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()],
test: {
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/*.test.*', '**/*.spec.*'],
environment: 'jsdom',
},
})