Skip to content

Commit 20c65b8

Browse files
committedFeb 5, 2024
Fix tests for Node.js v20.11.0 (#2618)
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 8ec52cd commit 20c65b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/mock-interceptor-unused-assertions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const util = require('../lib/core/util')
77

88
// Since Node.js v21 `console.table` rows are aligned to the left
99
// https://github.com/nodejs/node/pull/50135
10-
const tableRowsAlignedToLeft = util.nodeMajor >= 21
10+
const tableRowsAlignedToLeft = util.nodeMajor >= 21 || (util.nodeMajor === 20 && util.nodeMinor >= 11)
1111

1212
// Avoid colors in the output for inline snapshots.
1313
const pendingInterceptorsFormatter = new PendingInterceptorsFormatter({ disableColors: true })

0 commit comments

Comments
 (0)
Please sign in to comment.