mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test(infra): assert dotenv logger warning sink
Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com>
This commit is contained in:
@@ -188,12 +188,12 @@ describe("loadDotEnv", () => {
|
||||
);
|
||||
|
||||
vi.spyOn(process, "cwd").mockReturnValue(cwdDir);
|
||||
const warn = vi.spyOn(console, "warn").mockImplementation(() => undefined);
|
||||
loggerMocks.warn.mockClear();
|
||||
|
||||
loadDotEnv({ quiet: true });
|
||||
|
||||
expect(process.env.FOO).toBe("from-shell");
|
||||
expect(warn).not.toHaveBeenCalled();
|
||||
expect(loggerMocks.warn).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user