mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Activate
This commit is contained in:
@@ -34,7 +34,9 @@ export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
|||||||
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.
|
// Ensure we are activating the nocks, because we could have called `nock.restore()` before this call.
|
||||||
nock.activate();
|
if (!nock.isActive()) {
|
||||||
|
nock.activate();
|
||||||
|
}
|
||||||
return { status: "ok" };
|
return { status: "ok" };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user