activate...

This commit is contained in:
Fang-Pen Lin
2025-11-13 09:22:01 -08:00
parent 4b70f73362
commit 907cdd94c5
@@ -33,6 +33,8 @@ export const registerBddNockRouter = async (server: FastifyZodProvider) => {
const { definitions } = body; const { definitions } = body;
logger.info(definitions, "Defining nock"); logger.info(definitions, "Defining nock");
nock.define(definitions as Definition[]); nock.define(definitions as Definition[]);
// Ensure we are activating the nocks, because we could have called `nock.restore()` before this call.
nock.activate();
return { status: "ok" }; return { status: "ok" };
} }
}); });