소스 검색

📦 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 달 전
부모
커밋
2896598858
3개의 변경된 파일695개의 추가작업 그리고 6개의 파일을 삭제
  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",

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 692 - 3
pnpm-lock.yaml


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.