1
0
mirror of synced 2025-11-08 21:07:23 +00:00

test(integration): normalize paths on Windows to match POSIX paths

This commit is contained in:
Andrew Bradley
2018-03-15 22:29:00 -04:00
committed by Jason Dreyzehner
parent e39f22dec2
commit 74c0900ad9

View File

@@ -128,7 +128,10 @@ async function hashAllTheThings(
(acc, hash, i) => {
const trimmedNormalizedFilePath = normalize(
relative(buildDir, filePaths[i])
);
)
// On Windows, normalize returns "\\" as the path separator.
// Normalize with POSIX:
.replace(/\\/g, '/');
return {
...acc,
[trimmedNormalizedFilePath]: hash