nrwl / precise-commits

:sparkles: Painlessly apply Prettier by only formatting lines you have modified anyway!
MIT License
471 stars 20 forks source link

test(windows): fix tests to run on Windows #59

Closed djcsdy closed 4 years ago

djcsdy commented 4 years ago

This PR replaces the use of some Unix-specific CLI tools with pure JS implementations.

This makes it possible to run the tests on Windows.

Note that the tests still fail on Windows, because precise-commits produces wrong results when it encounters CRLF line separators. However at least it is possible to run the tests on Windows now.

I am working on a separate patch to add CRLF support.

djcsdy commented 4 years ago

Closing in favour of #60, which includes these changes.