Skip to content

Commit 8e00965

Browse files
committed
test: use real SubsystemLogger in directive-tags test
1 parent 296b3f4 commit 8e00965

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/gateway/server-methods/chat.directive-tags.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import os from "node:os";
33
import path from "node:path";
44
import { CURRENT_SESSION_VERSION } from "@mariozechner/pi-coding-agent";
55
import { describe, expect, it, vi } from "vitest";
6+
import { createSubsystemLogger } from "../../logging/subsystem.js";
67
import type { GatewayRequestContext } from "./types.js";
78

89
const mockState = vi.hoisted(() => ({
@@ -108,10 +109,7 @@ function createChatContext(): Pick<
108109
removeChatRun: vi.fn(),
109110
dedupe: new Map(),
110111
registerToolEventRecipient: vi.fn(),
111-
logGateway: {
112-
warn: vi.fn(),
113-
debug: vi.fn(),
114-
} as GatewayRequestContext["logGateway"],
112+
logGateway: createSubsystemLogger("gateway/server-methods/chat.directive-tags.test"),
115113
};
116114
}
117115

0 commit comments

Comments
 (0)