Skip to content

test: strip slashes in snapshots#67

Merged
fabiospampinato merged 1 commit intoprettier:mainfrom
43081j:fix-windows
May 19, 2025
Merged

test: strip slashes in snapshots#67
fabiospampinato merged 1 commit intoprettier:mainfrom
43081j:fix-windows

Conversation

@43081j
Copy link
Collaborator

@43081j 43081j commented May 14, 2025

For windows, tests will fail since the output contains $CWD\path rather than $CWD/path.

We can just replace all backslashes for now and make Windows happy.

If we ever need to assert something contains a backslash, do a more complex solution here.

For windows, tests will fail since the output contains `$CWD\path`
rather than `$CWD/path`.

We can just replace all backslashes for now and make Windows happy.

If we ever need to assert something contains a backslash, do a more
complex solution here.
@fabiospampinato fabiospampinato merged commit 8831ab3 into prettier:main May 19, 2025
4 checks passed
@fabiospampinato
Copy link
Collaborator

Thanks!

@43081j 43081j deleted the fix-windows branch May 19, 2025 17:03
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.

3 participants