From 3fb1413d8c528f88c7031fb54c2581c9fed21136 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Wed, 4 Oct 2023 20:17:40 +0200 Subject: [PATCH] Fix broken test (#1825) Co-authored-by: James Sumners <321201+jsumners@users.noreply.github.com> --- package.json | 2 +- test/multistream.test.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d6fe93f0c..1afe4093e 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "log": "^6.0.0", "loglevel": "^1.6.7", "midnight-smoker": "1.1.1", - "pino-pretty": "^10.0.0", + "pino-pretty": "^10.2.1", "pre-commit": "^1.2.2", "proxyquire": "^2.1.3", "pump": "^3.0.0", diff --git a/test/multistream.test.js b/test/multistream.test.js index 2e587669c..912517230 100644 --- a/test/multistream.test.js +++ b/test/multistream.test.js @@ -221,7 +221,7 @@ test('supports pretty print', function (t) { cb() }) - const nested = proxyquire('pino-pretty/lib/utils', { + const safeBoom = proxyquire('pino-pretty/lib/utils/build-safe-sonic-boom.js', { 'sonic-boom': function () { t.pass('sonic created') stream.flushSync = () => {} @@ -229,8 +229,11 @@ test('supports pretty print', function (t) { return stream } }) + const nested = proxyquire('pino-pretty/lib/utils/index.js', { + './build-safe-sonic-boom.js': safeBoom + }) const pretty = proxyquire('pino-pretty', { - './lib/utils': nested + './lib/utils/index.js': nested }) const log = pino({