Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

activate...

Fang-Pen Lin907cdd94c53a
diff --git a/backend/src/server/routes/v1/bdd-nock-router.ts b/backend/src/server/routes/v1/bdd-nock-router.ts
index 44d68ddae6..91e74919c7 100644
--- a/backend/src/server/routes/v1/bdd-nock-router.ts
+++ b/backend/src/server/routes/v1/bdd-nock-router.ts
@@ -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" };
}
});