degit icon indicating copy to clipboard operation
degit copied to clipboard

Fix some Windows tests

Open ArtskydJ opened this issue 5 years ago • 1 comments

A bunch of the tests were failing on Windows because of the path separator.

This PR fixes that issue.

At least one of the tests still fail for me, but I don't have access to that private git repo Rich-Harris/degit-test-repo-private...

ArtskydJ avatar Feb 21 '20 06:02 ArtskydJ

I think you could have simply used path.normalize(file) with .map instead of replace and reduce

files = files.map(path.normalize)

bernardoadc avatar Feb 21 '20 16:02 bernardoadc