mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
test: update run-main env mock
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
@@ -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(),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user