Skip to content

Commit 391ab42

Browse files
committed
test(notifications): type the plugin-wiring context double in push-channel.test.ts
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbWDV359nY4JGrtUq4P
1 parent 42a5488 commit 391ab42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/services/service-messaging/src/push-channel.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,10 @@ describe('MessagingServicePlugin mounts the push channel while a push service is
222222
async update() { return {}; },
223223
async delete() { return {}; },
224224
});
225+
const logger: Record<string, unknown> = { info() {}, warn() {}, error() {}, debug() {} };
226+
logger.child = () => logger;
225227
const ctx = {
226-
logger: { info() {}, warn() {}, error() {}, debug() {}, child: () => ctx.logger },
228+
logger,
227229
registerService: (name: string, svc: unknown) => services.set(name, svc),
228230
getService: <T>(name: string): T => {
229231
if (!services.has(name)) throw new Error(`service '${name}' not found`);

0 commit comments

Comments
 (0)