spatie/phpunit-snapshot-assertions

Failing on Windows because of new line

Closed this issue · 0 comments

All snapshots tests are failing on me on windows, presumably because of new line differences, as snapshots were made on Mac, but I'm running the test on Windows:

  --- Expected
  +++ Actual
  @@ @@
  -'<html lang="en">\r\n
  -<head>\r\n
  +'<html lang="en">\n
  +<head>\n

I'm running
php artisan test --parallel
I have CREATE_SNAPSHOTS=false in .env
and tests/**/__snapshots__/** text eol=lf in .gitattributes