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

jest.fn().mockResolvedValue syntax

Arrange the elements of the jest.fn().mockResolvedValue() syntax in the correct order:

Items to click

  • (
  • data
  • .fn()
  • jest
  • .mockResolvedValue
  • )

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