Better usage of pino

This commit is contained in:
Fedor Indutny 2025-06-16 09:47:18 -07:00 committed by GitHub
commit f6c19c548e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 489 additions and 738 deletions

View file

@ -1,8 +1,6 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable no-console */
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
@ -22,11 +20,6 @@ global.window = {
performance,
SignalContext: {
crypto: new Crypto(),
log: {
info: (...args) => console.log(...args),
warn: (...args) => console.warn(...args),
error: (...args) => console.error(...args),
},
getResolvedMessagesLocale: () => 'en',
getResolvedMessagesLocaleDirection: () => 'ltr',
getHourCyclePreference: () => HourCyclePreference.UnknownPreference,