beforeHook and afterHook are called each time there's a hook.
sometimes we want to call them just for specific hook, like beforeAll hook as an example
i'm suggesting that we'll add adding a hook name to the functions arguments.
i've already made local changes, and saw that this work
here are screen grabs of the code and the log (the spec file prints the hooks names):

