DEV Community

Cover image for Testing asynchronous lifecycle methods with Jest

Testing asynchronous lifecycle methods with Jest

John Hotterbeekx on March 17, 2019

While helping out a colleague recently we wandered into the land of promises, slowly drifting away from the yellow brick asynchronous road and gett...
Collapse
 
lelith profile image
Kathrin Holzmann

thank you so much for this simple, no-fancy-redux / hooks / context example. ever since i started using enzyme and jest i was miserable on testing async. loaded components. finally i was able to write a proper test on one!

Collapse
 
ngireric123 profile image
ngireric123 • Edited

thank you

Collapse
 
cuterthanbacon profile image
CuterThanBacon

seeing the image for this post made my day! Hilarious. Thanks