mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 06:14:23 +00:00
test(core): continue mock reset reductions in auth, gateway, npm install
This commit is contained in:
@@ -101,7 +101,7 @@ describe("applyAuthChoice", () => {
|
||||
|
||||
afterEach(async () => {
|
||||
vi.unstubAllGlobals();
|
||||
resolvePluginProviders.mockReset();
|
||||
resolvePluginProviders.mockClear();
|
||||
loginOpenAICodexOAuth.mockReset();
|
||||
loginOpenAICodexOAuth.mockResolvedValue(null);
|
||||
await lifecycle.cleanup();
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -67,7 +67,7 @@ describe("installFromNpmSpecArchive", () => {
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
vi.mocked(packNpmSpecToArchive).mockReset();
|
||||
vi.mocked(packNpmSpecToArchive).mockClear();
|
||||
vi.mocked(withTempDir).mockClear();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user