activate...

This commit is contained in:
Fang-Pen Lin
2025-11-12 21:37:44 -08:00
parent 4b70f73362
commit 907cdd94c5

View File

@@ -33,6 +33,8 @@ export const registerBddNockRouter = async (server: FastifyZodProvider) => {
const { definitions } = body;
logger.info(definitions, "Defining nock");
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" };
}
});