test(agents): avoid full mock resets in cli credential specs

This commit is contained in:
Peter Steinberger
2026-02-22 08:52:15 +00:00
parent 2b63592be5
commit cf570d3b44

View File

@@ -63,8 +63,8 @@ describe("cli credentials", () => {
afterEach(() => {
vi.useRealTimers();
execSyncMock.mockReset();
execFileSyncMock.mockReset();
execSyncMock.mockClear().mockImplementation(() => undefined);
execFileSyncMock.mockClear().mockImplementation(() => undefined);
delete process.env.CODEX_HOME;
resetCliCredentialCachesForTest();
});