setTimeout (() => { /* unit test code */ done(); 5. }); }); We use setTimeout to schedule the test code execution. Jest waits until we call the done function ...
確定! 回上一頁