Files
everything-is-suitable/everything-is-suitable-uniapp/vitest.config.ts
T
张翔 08ea5fbe98 feat(admin): 添加用户管理相关文件
添加用户管理视图、API和状态管理文件
2026-03-28 14:37:29 +08:00

29 lines
629 B
TypeScript

import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
test: {
environment: 'jsdom',
globals: true,
include: ['src/**/*.{test,spec}.{js,ts}'],
coverage: {
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{js,ts}'],
exclude: ['node_modules/', 'src/**/*.{test,spec}.{js,ts}'],
thresholds: {
lines: 70,
functions: 70,
branches: 60,
statements: 70
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})