Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest
Steps for Testing Async Code
Arrange the steps for testing an asynchronous function:
Items to put in order
- Mark the test function as async
- Verify the result using expect
- Use await when calling the tested function
You can check the correct answer by solving this task in the CodeWorlds game.