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

Mocking the Alert System

Create a mock for the alert system and verify calls.

Task

Use mock functions to test the park's alarm system.