切换vitest-browser

This commit is contained in:
xief
2025-07-15 10:56:24 +08:00
parent cf9913469f
commit 87e2804d1f
10 changed files with 1749 additions and 223 deletions

View File

@@ -16,7 +16,7 @@
// },
// "include": ["src/**/*", "tests/**/*"], // 包含测试文件
"compilerOptions": {
"types": [],
"types": ["@vitest/browser/providers/playwright"],
"resolveJsonModule": true, // 允许导入 .json 文件
"esModuleInterop": true, // 确保 CommonJS/ESM 兼容
"module": "ESNext", // 推荐使用 ESM