From 7a596b2305bc1737cd97fccd2532e861b8328f39 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 19 Mar 2026 11:55:22 -0700 Subject: [PATCH] test(ci): trim threading harness churn --- .../outbound/message-action-runner.threading.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/infra/outbound/message-action-runner.threading.test.ts b/src/infra/outbound/message-action-runner.threading.test.ts index 7401127251a..3f77bee2494 100644 --- a/src/infra/outbound/message-action-runner.threading.test.ts +++ b/src/infra/outbound/message-action-runner.threading.test.ts @@ -1,4 +1,4 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; const mocks = vi.hoisted(() => ({ executeSendAction: vi.fn(), recordSessionMetaFromInbound: vi.fn(async () => ({ ok: true })), @@ -66,8 +66,7 @@ const defaultTelegramToolContext = { } as const; describe("runMessageAction threading auto-injection", () => { - beforeEach(async () => { - vi.resetModules(); + beforeAll(async () => { ({ runMessageAction } = await import("./message-action-runner.js")); ({ installMessageActionRunnerTestRegistry, @@ -75,6 +74,9 @@ describe("runMessageAction threading auto-injection", () => { slackConfig, telegramConfig, } = await import("./message-action-runner.test-helpers.js")); + }); + + beforeEach(() => { installMessageActionRunnerTestRegistry(); });