Coding task · JavaScript and TypeScript course · Module 11: Testing with Jest

SpyOn - Monitoring Methods

Use spyOn to monitor existing methods of an object.

Task

Monitor the park system's methods using spyOn and verify calls.