test: update run-main env mock

This commit is contained in:
Peter Steinberger
2026-04-28 01:59:21 +01:00
parent a9bd8bb9b4
commit 53906fd177
2 changed files with 4 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ vi.mock("./dotenv.js", () => ({
}));
vi.mock("../infra/env.js", () => ({
isTruthyEnvValue: (value?: string) =>
typeof value === "string" && ["1", "on", "true", "yes"].includes(value.trim().toLowerCase()),
normalizeEnv: normalizeEnvMock,
}));

View File

@@ -41,6 +41,8 @@ vi.mock("./dotenv.js", () => ({
}));
vi.mock("../infra/env.js", () => ({
isTruthyEnvValue: (value?: string) =>
typeof value === "string" && ["1", "on", "true", "yes"].includes(value.trim().toLowerCase()),
normalizeEnv: vi.fn(),
}));