Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ function getNormalizedOutput(output, options) {
// the cwd is replaced with $CWD for snapshotting purposes
const { cwd } = options;
output = output.replaceAll(cwd, "$CWD");
// We do this because snapshots on windows will have backslashes, and on
// linux will have forward slashes. Since we don't care right now about
// slashes, we can replace them.
// If we ever need to assert that something contained a backslash, remove
// this and make it configurable or do it only for paths
output = output.replaceAll("\\", "/");
return output;
}

Expand Down