2.3 Before and After Hooks
In this video, we’ll look at how the
afterEach hooks allow you to repeat the same setup or cleanup actions before and after running a group of tests.
Note: The method of overwriting a file in this lesson is admittedly terrible, but demonstrates hooks well. We’ll talk about why it’s terrible and how to solve the problem better in later videos.