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

Tests with beforeEach

Use beforeEach so that each test has a fresh data state.

Task

Write tests for a fence system with beforeEach ensuring a clean state.