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

spyOn Syntax

Arrange the elements of spyOn usage:

Items to put in order

  • const spy
  • park, 'addDinosaur'
  • );
  • = jest.spyOn(

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