Skip to content

Commit

Permalink
Revert bad change
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet authored Oct 6, 2023
1 parent cc5059c commit fa8f6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/config/jest.image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const toMatchImageSnapshotWithRealSignature = toMatchImageSnapshot as (received:

// The path is relative from the jest-html-reporters page to the folder storing the images
function computeRelativePathFromReportToSnapshots(path: string): string {
path.replace(/\\/g, '/');
path = path.replace(/\\/g, '/');
const searchedPart = 'build/test-report/e2e/'; // hard coded here, must be kept in sync with the e2e/jest.config.js
return './' + path.slice(Math.max(0, path.indexOf(searchedPart) + searchedPart.length));
}
Expand Down

0 comments on commit fa8f6a1

Please sign in to comment.