From 0c08afe52f671527e11f8be0994169e5e3ac94de Mon Sep 17 00:00:00 2001 From: Dudu-0223 Date: Thu, 29 Oct 2026 18:59:34 +0800 Subject: [PATCH] Use explicit void cleanup in preset integration test --- apps/cli/tests/web-agent-presets.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cli/tests/web-agent-presets.e2e.ts b/apps/cli/tests/web-agent-presets.e2e.ts index 392c38f31c..01aed139c7 100644 --- a/apps/cli/tests/web-agent-presets.e2e.ts +++ b/apps/cli/tests/web-agent-presets.e2e.ts @@ -882,7 +882,7 @@ describe('a user preset declared from the shipped cordis rows', () => { // answers with the shared registry's view of the REQUESTING agent, // so the copy sees its own preset's tools, not the host's empty set. const spills = vi.spyOn(copyCtx.spillStore, 'saveText') - onTestFinished(() => spills.mockRestore()) + onTestFinished(() => { spills.mockRestore() }) const queried = await executeToolFixture(copyCtx, { callId: ToolCallId('copied-preset-inspect-tools'), name: 'cordis_inspect_query',