mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
activate...
This commit is contained in:
@@ -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" };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user