Created
May 10, 2021 19:35
-
-
Save ekazakov/d36769678c81acba59c27f5052303c46 to your computer and use it in GitHub Desktop.
Jest fake timers and promises pitfall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/sinonjs/fake-timers/issues/114 | |
https://stackoverflow.com/questions/50783013/how-to-timeout-promises-in-jest | |
https://stackoverflow.com/questions/51126786/jest-fake-timers-with-promises | |
https://github.com/facebook/jest/issues/5165 | |
https://github.com/facebook/jest/issues/5165#issuecomment-640212362 — Use sinon fake timer config directly | |
https://github.com/facebook/jest/issues/10221 | |
Transpile hack in jest: | |
https://github.com/facebook/jest/pull/6876 | |
https://github.com/facebook/jest/issues/2157 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment