Closed
Description
Version
N/A
Steps to reproduce
The typescript config test needs @jest/types
to be built. we run tsc -b packages/jest-types
in beforeAll
and set a 60s timeout, but this command run more than 60s occasionally at ci. I cannot reproduce it on my local macOS computer.
https://github.com/facebook/jest/runs/5465229008?check_suite_focus=true#step:8:7
Run yarn test-ci-partial:parallel --max-workers 3 --shard=3/[4](https://github.com/facebook/jest/runs/5465229008?check_suite_focus=true#step:8:4)
...........................................................
/Users/runner/work/jest/jest/e2e/__tests__/esmConfigFile.test.ts
● on node >=12.17.0 › typescript › reads config from ts file when package.json#type=module
thrown: "Exceeded timeout of 60000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
[5](https://github.com/facebook/jest/runs/5465229008?check_suite_focus=true#step:8:5)0 |
51 | describe('typescript', () => {
> 52 | beforeAll(async () => {
| ^
53 | // the typescript config test needs `@jest/types` to be built
54 | const cwd = resolve(__dirname, '../../');
55 | const typesPackageDirectory = 'packages/jest-types';
at beforeAll (e2e/__tests__/esmConfigFile.test.ts:52:5)
at describe (e2e/__tests__/esmConfigFile.test.ts:51:3)
at Object.<anonymous> (e2e/__tests__/esmConfigFile.test.ts:2[6](https://github.com/facebook/jest/runs/5465229008?check_suite_focus=true#step:8:6):1)
Setup MongoDB Test Environment
Teardown MongoDB Test Environment
..................................................
Error: Process completed with exit code 1.
Expected behavior
The test is timeout after 60s and failed.
Actual behavior
Test fail occasionly.fails
Additional context
No response
Environment
N/A
Activity