ソースを参照

🔧 chore(deps): remove unused @jest/globals dependency

- 删除 package.json 中未使用的 @jest/globals 依赖包
- 移除测试文件中对 @jest/globals 的导入语句
- 更新 tsconfig.json 以包含 tests 目录到编译范围内
yourname 3 ヶ月 前
コミット
8fb85e4372

+ 0 - 1
mini/package.json

@@ -87,7 +87,6 @@
     "@commitlint/config-conventional": "^19.8.1",
     "@egoist/tailwindcss-icons": "^1.9.0",
     "@iconify/json": "^2.2.365",
-    "@jest/globals": "^30.2.0",
     "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
     "@tailwindcss/postcss": "^4.1.11",
     "@tarojs/cli": "4.1.4",

+ 0 - 2
mini/tests/components/Button.test.tsx

@@ -1,5 +1,3 @@
-import React from 'react'
-import { describe, expect, test } from '@jest/globals'
 import { render, screen, fireEvent } from '@testing-library/react'
 import { Button } from '@tarojs/components'
 

+ 0 - 2
mini/tests/example.test.tsx

@@ -1,5 +1,3 @@
-import React from 'react'
-import { describe, expect, test } from '@jest/globals'
 import { render, screen, fireEvent } from '@testing-library/react'
 import { Text, View } from '@tarojs/components'
 

+ 1 - 1
mini/tsconfig.json

@@ -26,6 +26,6 @@
       "@/server/*": ["../src/server/*"]
     }
   },
-  "include": ["./src", "./types", "./config"],
+  "include": ["./src", "./types", "./config", "./tests"],
   "compileOnSave": false
 }