Skip to content

Commit

Permalink
fix snapshot assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jul 2, 2023
1 parent 51ff6a5 commit 4bc3d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-node-output-errors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function replaceStackTrace(str) {

describe('errors output', { concurrency: true }, () => {
function normalize(str) {
return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '').replaceAll('//', '*').replaceAll(/\/(\w)/g, '*$1').replaceAll('*test*', '*').replaceAll('*fixtures*errors*', '*').replaceAll('file:**', 'file:*/');
return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '').replaceAll(pathToFileURL(process.cwd()).pathname, '').replaceAll('//', '*').replaceAll(/\/(\w)/g, '*$1').replaceAll('*test*', '*').replaceAll('*fixtures*errors*', '*').replaceAll('file:**', 'file:*/');
}

function normalizeNoNumbers(str) {
Expand Down

0 comments on commit 4bc3d0f

Please sign in to comment.