Skip to content

Commit

Permalink
Fix Node.js 10 CI failure (#16084)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 3, 2023
1 parent 917010d commit 934c1b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/babel-core/test/errors-stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ function expectError(run) {
"\n at ... internal jest frames ...\n at new Promise (<anonymous>)",
"",
);
// For some reason this is only there in Node.js 10
stack = stack.replace(
"\n at process._tickCallback (... internal node frames ...)",
"",
);
// Node.js 8
stack = stack.replace(/\n\s*at <anonymous>$/g, "");
// Node.js 6
Expand Down

0 comments on commit 934c1b3

Please sign in to comment.