Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 3, 2023
1 parent b221bb1 commit 1d3dee0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-core/test/errors-stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function expectError(run) {
run();
} catch (e) {
let { stack } = e;
return expect(stack);
// Normalize windows paths
stack = stack.replace(/\\/g, "/");
// Remove absolute URLs
Expand Down Expand Up @@ -60,6 +59,10 @@ function expectError(run) {
"\n at ... internal jest frames ...\n at new Promise (<anonymous>)",
"",
);
stack = stack.replace(
"\n at process._tickCallback (internal/process/next_tick.js:68:7)",
"",
);
// Node.js 8
stack = stack.replace(/\n\s*at <anonymous>$/g, "");
// Node.js 6
Expand Down

0 comments on commit 1d3dee0

Please sign in to comment.