Skip to content

Commit eed58b2

Browse files
committed
更新 vitest 配置,修正测试超时时间格式;在 GitHub 工作流中调整测试命令,设置最大工作线程数为 1,以提升测试稳定性。
1 parent e185789 commit eed58b2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: |
2424
steps.cache-pnpm-cache.outputs.cache-hit != 'true' ||
2525
steps.cache-node-modules.outputs.cache-hit != 'true'
26-
- run: pnpm run test:coverage
26+
- run: pnpm run test:coverage --maxWorkers=1
2727
env:
2828
CI: true
2929
PROGRESS: none

vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export default defineConfig({
3636
'src/utils/useMountMergeState/*.{ts,tsx}',
3737
],
3838
},
39-
maxWorkers: 3,
40-
testTimeout: 60_00, // 60 seconds
39+
testTimeout: 60_0000, // 60 seconds
4140
globals: true,
4241
},
4342
// 添加兼容性配置

0 commit comments

Comments
 (0)