Answers for "restoreallmocks jest"

3

jest spyon

// jest.spyOn(object, methodName)
const spy = jest.spyOn(video, 'play');

// jest.spyOn(object, methodName, accessType?)
const spy = jest.spyOn(video, 'play', 'get'); // we pass 'get'
Posted by: Guest on June-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language