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

beforeEach syntax in tests

Arrange the elements of the beforeEach syntax with mock reset in the correct order:

Items to put in order

  • (() =>
  • ; })
  • .clearAllMocks()
  • { jest
  • beforeEach

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