7 days of WordPress plugins, themes & templates - for free! Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 21Length: 2 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.3 Before and After Hooks

In this video, we’ll look at how the before, after, beforeEach, and 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.

Related Links