Linter issue

This commit is contained in:
Fang-Pen Lin
2025-11-20 08:57:17 -08:00
parent 142316db80
commit 855bc6cd73
2 changed files with 2 additions and 1 deletions
@@ -17,6 +17,7 @@ if (process.env.NODE_ENV === "production") {
export const registerBddNockRouter = async (server: FastifyZodProvider) => { export const registerBddNockRouter = async (server: FastifyZodProvider) => {
const appCfg = getConfig(); const appCfg = getConfig();
const importNock = async () => { const importNock = async () => {
// eslint-disable-next-line import/no-extraneous-dependencies
const { default: nock } = await import("nock"); const { default: nock } = await import("nock");
return nock; return nock;
}; };
@@ -1,3 +1,3 @@
export const registerBddNockRouter = async (server: FastifyZodProvider) => { export const registerBddNockRouter = async () => {
throw new Error("BDD Nock should not be enabled in production"); throw new Error("BDD Nock should not be enabled in production");
}; };