From 20c65b89f4fda588ebb3f2abf51c55726880820e Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 16 Jan 2024 19:34:08 +0100 Subject: [PATCH] Fix tests for Node.js v20.11.0 (#2618) Signed-off-by: Matteo Collina --- test/mock-interceptor-unused-assertions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mock-interceptor-unused-assertions.js b/test/mock-interceptor-unused-assertions.js index 120a2ddedba..2fe8b824f9f 100644 --- a/test/mock-interceptor-unused-assertions.js +++ b/test/mock-interceptor-unused-assertions.js @@ -7,7 +7,7 @@ const util = require('../lib/core/util') // Since Node.js v21 `console.table` rows are aligned to the left // https://github.com/nodejs/node/pull/50135 -const tableRowsAlignedToLeft = util.nodeMajor >= 21 +const tableRowsAlignedToLeft = util.nodeMajor >= 21 || (util.nodeMajor === 20 && util.nodeMinor >= 11) // Avoid colors in the output for inline snapshots. const pendingInterceptorsFormatter = new PendingInterceptorsFormatter({ disableColors: true })