Put in order · JavaScript and React course · Module 13: Testing React

Stages of testing an async component

Arrange the stages of testing an asynchronous component in the correct order:

Items to put in order

  • Use findBy/waitFor for data
  • Check the loading state
  • Render the component
  • Check the rendered data
  • Mock fetch or API

You can check the correct answer by solving this task in the CodeWorlds game.