beforeEach runs hook if leaf
does not call runHooks if leafMode and not a leaf