From b7b01ec38ede9f9722b5cce90574782e1eda1305 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 19 Oct 2020 20:05:08 -0700 Subject: [PATCH] [Tests] handle stack differences in node 15 --- test/common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/common.js b/test/common.js index 856c9250..0ddc4312 100644 --- a/test/common.js +++ b/test/common.js @@ -52,7 +52,11 @@ module.exports.stripFullStack = function (output) { return line; }); - var deduped = withDuplicates.filter(function (line, ix) { + var withoutInternals = withDuplicates.filter(function (line) { + return !line.match(/ \(node:[^)]+\)$/); + }); + + var deduped = withoutInternals.filter(function (line, ix) { var hasPrior = line === stripped && withDuplicates[ix - 1] === stripped; return !hasPrior; });