fix: vitest ui (#7116)

Fix https://github.com/vitest-dev/vitest/issues/553
This commit is contained in:
三咲智子 2022-04-12 20:17:49 +08:00 committed by GitHub
parent efc1a4c816
commit 7ffb3b55b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,9 +5,12 @@ import DefineOptions from 'unplugin-vue-define-options/vite'
export default defineConfig({
plugins: [Vue(), VueJsx(), DefineOptions()],
optimizeDeps: {
exclude: ['vue', '@element-plus/icons-vue'],
},
test: {
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/*.test.*', '**/*.spec.*'],
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
environment: 'jsdom',
},
})