test(core): continue mock reset reductions in auth, gateway, npm install

This commit is contained in:
Peter Steinberger
2026-02-22 08:28:50 +00:00
parent c7606e7064
commit 7cac6bd85d
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ describe("applyAuthChoice", () => {
afterEach(async () => {
vi.unstubAllGlobals();
resolvePluginProviders.mockReset();
resolvePluginProviders.mockClear();
loginOpenAICodexOAuth.mockReset();
loginOpenAICodexOAuth.mockResolvedValue(null);
await lifecycle.cleanup();

View File

@@ -12,7 +12,7 @@ describe("resolveTailnetDnsHint", () => {
beforeEach(() => {
prevTailnetDns.value = process.env.OPENCLAW_TAILNET_DNS;
delete process.env.OPENCLAW_TAILNET_DNS;
getTailnetHostname.mockReset();
getTailnetHostname.mockClear();
});
afterEach(() => {

View File

@@ -67,7 +67,7 @@ describe("installFromNpmSpecArchive", () => {
};
beforeEach(() => {
vi.mocked(packNpmSpecToArchive).mockReset();
vi.mocked(packNpmSpecToArchive).mockClear();
vi.mocked(withTempDir).mockClear();
});