mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +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 () => {
|
afterEach(async () => {
|
||||||
vi.unstubAllGlobals();
|
vi.unstubAllGlobals();
|
||||||
resolvePluginProviders.mockReset();
|
resolvePluginProviders.mockClear();
|
||||||
loginOpenAICodexOAuth.mockReset();
|
loginOpenAICodexOAuth.mockReset();
|
||||||
loginOpenAICodexOAuth.mockResolvedValue(null);
|
loginOpenAICodexOAuth.mockResolvedValue(null);
|
||||||
await lifecycle.cleanup();
|
await lifecycle.cleanup();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ describe("resolveTailnetDnsHint", () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
prevTailnetDns.value = process.env.OPENCLAW_TAILNET_DNS;
|
prevTailnetDns.value = process.env.OPENCLAW_TAILNET_DNS;
|
||||||
delete process.env.OPENCLAW_TAILNET_DNS;
|
delete process.env.OPENCLAW_TAILNET_DNS;
|
||||||
getTailnetHostname.mockReset();
|
getTailnetHostname.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ describe("installFromNpmSpecArchive", () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
vi.mocked(packNpmSpecToArchive).mockReset();
|
vi.mocked(packNpmSpecToArchive).mockClear();
|
||||||
vi.mocked(withTempDir).mockClear();
|
vi.mocked(withTempDir).mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user