Update running hooks, recursively applying beforeEach and afterEach hooks