Skip to content

Commit f27817e

Browse files
author
zhuqingan.3
committed
fix: 尝试串行执行test命令
1 parent d5ddf80 commit f27817e

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:style": "stylelint ./packages/**/*.{css,scss}",
3232
"format": "prettier --write --cache .",
3333
"format:check": "prettier --check --cache .",
34-
"test": "pnpm --if-present -r --aggregate-output --filter=./packages/* --filter=./tests test:ci",
34+
"test": "pnpm --if-present -r --workspace-concurrency=1 --aggregate-output --filter=./packages/* --filter=./tests test:ci",
3535
"test:binding": "pnpm --filter @tarojs/binding run test",
3636
"updateSnapshot": "pnpm --if-present -r --aggregate-output --filter=./tests --filter=./packages/* updateSnapshot",
3737
"version": "run-s version:*",

packages/taro-components/__mocks__/setup.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,3 @@ globalThis.MutationObserver = class {
99
disconnect () {}
1010
observe (_element, _initObject) {}
1111
}
12-
13-
jest.mock('@stencil/core/testing', () => {
14-
const original = jest.requireActual('@stencil/core/testing')
15-
return {
16-
...original, // 保留其他方法(如 render, flush)
17-
newE2EPage: async (options = {}) => {
18-
// 自动注入 90 秒超时,合并用户参数
19-
const mergedOptions = {
20-
timeout: 90000,
21-
...options,
22-
}
23-
return original.newE2EPage(mergedOptions)
24-
},
25-
}
26-
})
27-
28-
// 可选:加日志验证 setup.ts 是否加载(确认路径正确)
29-
console.log('✅ setup.ts 已加载,newE2EPage 已 mock 覆盖')

0 commit comments

Comments
 (0)