Skip to content

Conversation

@LDSamson
Copy link
Contributor

This would fix issue #1900.

Newline ("\n") arguments in test descriptions are problematic for snapshots. They are converted to actual line breaks when writing the snapshot to a .md file here, causing a discrepancy between the test name in the snapshot (first line of the test, cut short at the newline argument) and the actual test name with newline arguments.

I think the easiest solution is to just remove the newline arguments in the test description within SnapshotReporter.

@LDSamson
Copy link
Contributor Author

I don't know why the test-coverage GitHub Action it failing though..

@hadley hadley added this to the v3.2.2 milestone Oct 22, 2024
@hadley hadley merged commit dd39c65 into r-lib:main Oct 29, 2024
11 checks passed
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.

2 participants