Repository navigation
test: avoid newline-specific assertions in formatting e2e test - #34556
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes trailing newline characters from assertions in the formatting end-to-end tests. The reviewer identified that removing these checks weakens the assertions, as they may falsely pass even if semicolons are not correctly removed by the formatters. To address this, the reviewer suggested using regular expressions that strictly assert the presence or absence of semicolons while safely supporting both LF and CRLF line endings.
Avoid hardcoding LF (`\n`) line endings in `formatting.ts` assertions so the test passes on Windows CI where CRLF (`\r\n`) line endings may be emitted.
0fc4a23 to
7c509f8
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Avoid hardcoding LF (
\n) line endings informatting.tsassertions so the test passes on Windows CI where CRLF (\r\n) line endings may be emitted.