Aug 26, 2017 · 1 min read
The difference is that beforeEach and afterEach encourage shared mutable state. Setup and teardown in a unit test should be pure. See “What is Pure Function”.
The difference is that beforeEach and afterEach encourage shared mutable state. Setup and teardown in a unit test should be pure. See “What is Pure Function”.