08ea5fbe98
添加用户管理视图、API和状态管理文件
29 lines
629 B
TypeScript
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')
|
|
}
|
|
}
|
|
})
|