Login
From:
jestjs.io
(Uncensored)
subscribe
Testing Asynchronous Code · Jest
https://jestjs.io/docs/asynchronous
links
backlinks
Roast topics
Find topics
Find it!
It's common in JavaScript for code to run asynchronously. When you have code that runs asynchronously, Jest needs to know when the code it is testing has completed, before it can move on to another test. Jest has several ways to handle this.