Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
상황 테스트코드에서 테스트를 실행하니 이와 같은 오류가 나온다. Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. 원인 each function(test) has a default timeout limit for 2 seconds (2000ms). -> When our tests run longer than 2000ms, then the timeout reaches maximum limit and breaks the tests. 해결 방안 2가지 1. 2초 안에 테스트가 실행되도록 하기 2. 테스트 시간을 늘려주기 테스..
문제 해결/에러 해결도 실력이다.
2022. 4. 13. 10:36