Skip to content

Commit

Permalink
call "next" in hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDedominici committed Nov 25, 2024
1 parent 03581ab commit 0bc2aa2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { addChaiMatchers } from "../add-chai-matchers.js";
export default async (): Promise<Partial<MochaHooks>> => {
const handlers: Partial<MochaHooks> = {
initialize(
_context: HookContext,
_next: (context: HookContext) => Promise<void>,
context: HookContext,
next: (context: HookContext) => Promise<void>,
): Promise<void> {
addChaiMatchers();

return Promise.resolve();
return next(context);
},
};

Expand Down

0 comments on commit 0bc2aa2

Please sign in to comment.