test(integration): normalize paths on Windows to match POSIX paths
This commit is contained in:
committed by
Jason Dreyzehner
parent
e39f22dec2
commit
74c0900ad9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user