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.
-
Notifications
You must be signed in to change notification settings - Fork 0
hughrawlinson/jest-timers-repro
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
🃏Repro of a jest timer mock bug I'm having