From d03253617ca1e4b08fad022d086b14ddf47834d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 27 Apr 2026 15:00:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E8=BF=81=E7=A7=BB=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=88=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=20T4.2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 替换 package.json,适配项目名 novalon-manage-web - 替换环境配置文件 .env.example、.env.test - 替换 vite.config.ts - 替换 tsconfig.json、tsconfig.node.json - 替换 vitest.config.ts --- novalon-manage-web/package.json | 5 +++-- novalon-manage-web/vitest.config.ts | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/novalon-manage-web/package.json b/novalon-manage-web/package.json index 4026fe1..d1465c8 100644 --- a/novalon-manage-web/package.json +++ b/novalon-manage-web/package.json @@ -1,7 +1,7 @@ { "name": "novalon-manage-web", "version": "1.0.0", - "description": "Novalon Enterprise Management System Frontend", + "description": "Novalon Manage Web", "type": "module", "scripts": { "dev": "vite", @@ -60,9 +60,10 @@ "eslint-plugin-vue": "^9.19.2", "jsdom": "^27.4.0", "prettier": "^3.1.1", + "terser": "^5.46.1", "typescript": "^5.9.3", "vite": "^7.3.1", "vitest": "^4.0.16", "vue-tsc": "^3.2.2" } -} +} \ No newline at end of file diff --git a/novalon-manage-web/vitest.config.ts b/novalon-manage-web/vitest.config.ts index 47071a2..01c0279 100644 --- a/novalon-manage-web/vitest.config.ts +++ b/novalon-manage-web/vitest.config.ts @@ -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.*',