Sfoglia il codice sorgente

📦 build(jest): 迁移 jest 配置至 ESM 并更新依赖

- 将 jest.config.js 从 CommonJS 迁移到 ESM 格式
- 降级 @testing-library/react 和 @testing-library/user-event 版本以解决兼容性问题
- 添加完整的 jest 生态系统依赖包到 pnpm-lock.yaml
- 包含 babel 相关包用于 jest 转译支持
- 添加 jsdom 和测试工具相关依赖
yourname 2 mesi fa
parent
commit
2896598858
3 ha cambiato i file con 695 aggiunte e 6 eliminazioni
  1. 1 1
      jest.config.js
  2. 2 2
      package.json
  3. 692 3
      pnpm-lock.yaml

+ 1 - 1
jest.config.js

@@ -97,4 +97,4 @@ if (process.env.TEST_ENV === 'ui') {
   ];
 }
 
-module.exports = config;
+export default config;

+ 2 - 2
package.json

@@ -93,8 +93,8 @@
   "devDependencies": {
     "@tailwindcss/vite": "^4.1.11",
     "@testing-library/jest-dom": "^6.6.3",
-    "@testing-library/react": "^16.3.2",
-    "@testing-library/user-event": "^14.6.2",
+    "@testing-library/react": "^16.3.0",
+    "@testing-library/user-event": "^14.6.1",
     "@types/bcrypt": "^6.0.0",
     "@types/debug": "^4.1.12",
     "@types/jest": "^29.5.14",

File diff suppressed because it is too large
+ 692 - 3
pnpm-lock.yaml


Some files were not shown because too many files changed in this diff