Skip to content

Conversation

@George-Ogden
Copy link

Description

This PR allows empty lines in the snapshot file to be treated that way, without affecting other snapshot semantics.

Related Issues

Checklist

  • This PR has sufficient documentation.
  • This PR has sufficient test coverage.
  • This PR title satisfies semantic convention.

Additional Comments

No additional comments.



def test_multiline_repr_with_no_indentation(snapshot):
# snapshot file has been manually edited
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syrupy amber snapshots are an exact representation of the data being snapshotted. We can't ignore trailing newlines, see the comments I left in the linked issue.

@codecov
Copy link

codecov bot commented Nov 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1042   +/-   ##
=======================================
  Coverage   97.29%   97.30%           
=======================================
  Files          21       21           
  Lines        1666     1669    +3     
=======================================
+ Hits         1621     1624    +3     
  Misses         45       45           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.ambr snapshot files have meaningful trailing whitespace

2 participants