I copied this code from Jest's documentation to try and debug an issue I'm having with Jest's timer mocks. I was expecting that this example from the docs would work fine, but it actually fails because in the test, setTimeout
is a standard function, not a mock.
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.
hughrawlinson/jest-timers-repro
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.