test: fix rebased quote reply typecheck imports

This commit is contained in:
Joey Krug 2026-03-14 13:41:27 -04:00
parent 96b63d7b2e
commit b3f0da2a77
3 changed files with 5 additions and 3 deletions

View File

@ -3,8 +3,8 @@ import { sendMessageSignal } from "./send.js";
const rpcMock = vi.fn();
vi.mock("../config/config.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../config/config.js")>();
vi.mock("../../../src/config/config.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../../../src/config/config.js")>();
return {
...actual,
loadConfig: () => ({}),

View File

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

View File

@ -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";