Skip to content

Commit 1ac9ecf

Browse files
committed
[Tests] handle stack differences in node 15
1 parent 7574152 commit 1ac9ecf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ module.exports.stripFullStack = function (output) {
5656
return line;
5757
});
5858

59-
var deduped = withDuplicates.filter(function (line, ix) {
59+
var withoutInternals = withDuplicates.filter(function (line) {
60+
return !line.match(/ \(node:[^)]+\)$/);
61+
});
62+
63+
var deduped = withoutInternals.filter(function (line, ix) {
6064
var hasPrior = line === stripped && withDuplicates[ix - 1] === stripped;
6165
return !hasPrior;
6266
});

0 commit comments

Comments
 (0)