feat(web): Vitest 测试基建与首批单测(#27)+ 公共格式化函数

This commit is contained in:
weijuesen
2026-08-13 14:51:57 +08:00
parent e9991a2954
commit 0e6dc007f3
6 changed files with 1241 additions and 17 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
export default defineConfig({
@@ -27,6 +27,9 @@ export default defineConfig({
},
},
},
test: {
environment: 'jsdom',
},
server: {
host: '0.0.0.0',
port: 5174,