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
@scotthovestadt from poking at the code, this was most likely introduced in #8198
Expected behavior
All the generated snapshots have the same indentation.
Link to repl or repo (highly encouraged)
Not possible since it requires editing source files via inline snapshots, but the bash script pasted above is self contained and can be run on any machine with recent versions of node and npm.
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
New snapshots cause existing multi-line snapshots to indent too far.
To Reproduce
expect({x:1}).toMatchInlineSnapshot()
expect({x:1}).toMatchInlineSnapshot()
Pasting these commands into a bash script is an easy way to repro:
Then take a look at
index.test.js
- you'll see the indenting is inconsistent:@scotthovestadt from poking at the code, this was most likely introduced in #8198
Expected behavior
All the generated snapshots have the same indentation.
Link to repl or repo (highly encouraged)
Not possible since it requires editing source files via inline snapshots, but the bash script pasted above is self contained and can be run on any machine with recent versions of node and npm.
Run
npx envinfo --preset jest
Paste the results here:
System: OS: macOS 10.14.5 CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz Binaries: Node: 10.16.0 - /usr/local/bin/node Yarn: 1.17.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm npmPackages: jest: ^24.8.0 => 24.8.0
The text was updated successfully, but these errors were encountered: