TS linter issue

This commit is contained in:
Fang-Pen Lin
2025-11-14 21:15:15 -08:00
parent 889fb8b7e0
commit c5f5e329e8

View File

@@ -10,6 +10,7 @@ import { AuthMode } from "@app/services/auth/auth-type";
export const registerBddNockRouter = async (server: FastifyZodProvider) => {
const importNock = async () => {
// Notice: it seems like importing nock somehow increase memory usage a lots, let's import it lazily.
// eslint-disable-next-line import/no-extraneous-dependencies
const nock = await import("nock");
if (!nock) {
throw new InternalServerError({ message: "Failed to import nock" });