diff --git a/packages/app-server/src/modules/shared/logger/logger.test-utils.ts b/packages/app-server/src/modules/shared/logger/logger.test-utils.ts index daadc7d1..429fb289 100644 --- a/packages/app-server/src/modules/shared/logger/logger.test-utils.ts +++ b/packages/app-server/src/modules/shared/logger/logger.test-utils.ts @@ -4,7 +4,11 @@ export function createTestLogger() { const loggerArgs: Record = {}; const logFn = (level: string) => (...args: unknown[]) => { - (loggerArgs[level] ??= []).push(args); + if (!loggerArgs[level]) { + loggerArgs[level] = []; + } + + loggerArgs[level].push(args); }; const logger = {