You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a new inline snapshot is generated in a file that already contains inline snapshots, the new snapshot content is incorrectly indented far left, at column 0.
To Reproduce
The following code upon file save produces a correctly indented snapshot:
I've got this as well - I'd think it's b/c of #9203, but I've attempted a revert to no effect.
I'll have a poke around to see if I can find what has caused this to regress from 24.9 - will also need to find a way to make a test; jest might already have some "run twice" tests, but not hopefully something can be hacked together.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
When a new inline snapshot is generated in a file that already contains inline snapshots, the new snapshot content is incorrectly indented far left, at column 0.
To Reproduce
The following code upon file save produces a correctly indented snapshot:
Becomes -
However, with two
test
blocks present, the first already containing an inline snapshot -On save, becomes -
Expected behavior
In the second example above, I would expect the snapshot in the second test block to be indented the same as the first, not hard left.
envinfo
The text was updated successfully, but these errors were encountered: