[Jest] Testing Asynchronous Code
0. 참고자료 Testing Asynchronous Code · Jest 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. jestjs.io 1. 비동기 코드 테스트 javascript를 사용하면 비동기적인 코드를 작성하는 경우가 많고 이를 권장한다. 그렇기에 당연하게도 jest에서도 비동기 코드를 테스트하는 방법을 제공한다. ..
2023.03.01