Course contentsShow
JavaScript
Lesson 2698 of 2,72354. Testing in JavaScriptPro lesson

Spying on Existing Functions with jest.spyOn

Wrap real methods to observe calls while preserving or replacing original behavior.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.