spatie / phpunit-snapshot-assertions

A way to test without writing actual test cases
https://spatie.be/courses/testing-laravel-with-pest/snapshot-testing
MIT License
640 stars 70 forks source link

Failing on Windows because of new line #155

Closed zigi05 closed 1 year ago

zigi05 commented 1 year ago

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