test(ci): trim threading harness churn

This commit is contained in:
Vincent Koc
2026-03-19 11:55:22 -07:00
parent 60253111a3
commit 7a596b2305

View File

@@ -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();
});