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

Timer mocking syntax

Arrange the elements of the Jest timer mocking syntax in the correct order:

Items to click

  • jest
  • .useFakeTimers
  • (1000);
  • jest
  • .advanceTimersByTime
  • ();

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