Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve zero indentation when updating inline snapshot #16813

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pfgithub
Copy link
Contributor

@pfgithub pfgithub commented Jan 27, 2025

What does this PR do?

Forgot this case in #16685

expect("keeps no\n\nindentation").toMatchInlineSnapshot(`
"no existing

indentation"
`);

// bun test -u

(this PR)

expect("keeps no\n\nindentation").toMatchInlineSnapshot(`
"keeps no

indentation"
`);

(vs after #16685 it would update to)

expect("keeps no\n\nindentation").toMatchInlineSnapshot(`
  "keeps no

  indentation"
`);

@robobun
Copy link

robobun commented Jan 27, 2025

Updated 3:20 PM PT - Jan 27th, 2025

@pfgithub, your commit b830856 has 2 failures in Build #10656:


🧪   try this PR locally:

bunx bun-pr 16813

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