Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest

mockReturnValue Syntax

Arrange the elements of a mock return value configuration:

Items to put in order

  • .mockReturnValue(
  • = jest.fn()
  • const getHealth
  • 100);

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