Closed
Description
Version
N/A
Steps to reproduce
/Users/runner/work/jest/jest/e2e/__tests__/detectOpenHandles.ts
● notify › does not report --notify flag
expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "Jest did not exit one second after the test run has completed.·
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue."
90 | const textAfterTest = getTextAfterTest(stderr);
91 |
> 92 | expect(textAfterTest).toBe('');
| ^
93 | });
94 | });
95 |
at Object.toBe (e2e/__tests__/detectOpenHandles.ts:92:[27](https://github.com/facebook/jest/runs/5575218844?check_suite_focus=true#step:8:27))
flaky ci run:
- https://github.com/facebook/jest/runs/5575218844?check_suite_focus=true#step:8:12
- https://github.com/facebook/jest/runs/5643765795?check_suite_focus=true#step:8:12
Expected behavior
this test should always pass
Actual behavior
this test fail occasionally
Additional context
No response
Environment
ci environment
Activity