Issue:
For some reason there's always a new line \n at the end of each snapshot file when running in CI, but not in local machine. Which is causing failure of tests. Tried to compare only the content, instead of using snapshot.assert_match, but that won't allow me to easily update the snapshot by running pytest --snapshot-update
Any pointers or suggestion would be much appreciated. Thank you! 🙏
Issue: For some reason there's always a new line
\n
at the end of each snapshot file when running in CI, but not in local machine. Which is causing failure of tests. Tried to compare only the content, instead of usingsnapshot.assert_match
, but that won't allow me to easily update the snapshot by runningpytest --snapshot-update
Any pointers or suggestion would be much appreciated. Thank you! 🙏