From b3f0da2a77db75494eaa97f74a6ea6edac254297 Mon Sep 17 00:00:00 2001 From: Joey Krug Date: Sat, 14 Mar 2026 13:41:27 -0400 Subject: [PATCH] test: fix rebased quote reply typecheck imports --- extensions/signal/src/send.test.ts | 4 ++-- src/auto-reply/reply/block-reply-pipeline.test.ts | 2 +- src/plugins/loader.test.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/signal/src/send.test.ts b/extensions/signal/src/send.test.ts index a1a81a985d5..d38e5852dc6 100644 --- a/extensions/signal/src/send.test.ts +++ b/extensions/signal/src/send.test.ts @@ -3,8 +3,8 @@ import { sendMessageSignal } from "./send.js"; const rpcMock = vi.fn(); -vi.mock("../config/config.js", async (importOriginal) => { - const actual = await importOriginal(); +vi.mock("../../../src/config/config.js", async (importOriginal) => { + const actual = await importOriginal(); return { ...actual, loadConfig: () => ({}), diff --git a/src/auto-reply/reply/block-reply-pipeline.test.ts b/src/auto-reply/reply/block-reply-pipeline.test.ts index 92564033df5..dc4070e5052 100644 --- a/src/auto-reply/reply/block-reply-pipeline.test.ts +++ b/src/auto-reply/reply/block-reply-pipeline.test.ts @@ -45,7 +45,7 @@ describe("createBlockReplyContentKey", () => { describe("createBlockReplyPipeline dedup with threading", () => { it("keeps separate deliveries for same text with different replyToId", async () => { - const sent: Array<{ text?: string; replyToId?: string }> = []; + const sent: Array<{ text?: string; replyToId?: string | null }> = []; const pipeline = createBlockReplyPipeline({ onBlockReply: async (payload) => { sent.push({ text: payload.text, replyToId: payload.replyToId }); diff --git a/src/plugins/loader.test.ts b/src/plugins/loader.test.ts index 9d3a1651781..2de2d8eb086 100644 --- a/src/plugins/loader.test.ts +++ b/src/plugins/loader.test.ts @@ -1,6 +1,8 @@ +import { execFileSync } from "node:child_process"; import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import { pathToFileURL } from "node:url"; import { afterAll, afterEach, describe, expect, it, vi } from "vitest"; import { emitDiagnosticEvent, resetDiagnosticEventsForTest } from "../infra/diagnostic-events.js"; import { withEnv } from "../test-utils/env.js";