Closed chrisvltn closed 8 months ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
29.7.0
Steps to reproduce
git clone https://github.com/chrisvltn/jest-inconsistent-failure.git
npm install
npm run test
Expected behavior
Both tests pass
Actual behavior
Test with
console.log
passes, but test withoutconsole.log
fails.Additional context
When running the same tests in docker (
docker run --rm -it -v $(pwd):/app --platform=linux/amd64 -w /app node:18.18.2 npm run test
), both tests pass.Running with
--runInBand
had the same behavior. SWC andts-jest
transformers had the same behavior.The tests are executed in
Overlay
andSideDrawerOverlay
, which have the same code internally. If they run in only one of them, they pass.This was noticed as it was often failing on local, but passing in our pipelines (which use Docker under the hood as well)
Environment