feat(web): 迁移前端配置文件(任务 T4.2)
- 替换 package.json,适配项目名 novalon-manage-web - 替换环境配置文件 .env.example、.env.test - 替换 vite.config.ts - 替换 tsconfig.json、tsconfig.node.json - 替换 vitest.config.ts
This commit is contained in:
@@ -7,10 +7,8 @@ export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
// 明确指定包含单元测试文件和角色定义测试
|
||||
setupFiles: ['./src/__tests__/setup.ts'],
|
||||
include: [
|
||||
'src/test/**/*.{test,spec}.{js,ts,jsx,tsx}',
|
||||
'src/__tests__/**/*.{test,spec}.{js,ts,jsx,tsx}'
|
||||
],
|
||||
// 明确排除E2E测试文件
|
||||
@@ -27,7 +25,6 @@ export default defineConfig({
|
||||
reporter: ['text', 'json', 'html', 'lcov'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'src/test/',
|
||||
'src/__tests__/',
|
||||
'**/*.d.ts',
|
||||
'**/*.config.*',
|
||||
|
||||
Reference in New Issue
Block a user