-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Output created snapshot when using --ci option #3693
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Codecov Report
@@ Coverage Diff @@
## master #3693 +/- ##
==========================================
- Coverage 62.72% 62.65% -0.07%
==========================================
Files 183 183
Lines 6701 6708 +7
Branches 6 6
==========================================
Hits 4203 4203
- Misses 2495 2502 +7
Partials 3 3
Continue to review full report at Codecov.
|
Hey @lsentkiewicz! I like your idea, this is something that I am also running into: Jest creates snapshots automatically which forces me to go to the corresponding Showing the actual snapshot in the terminal is a great improvement in my opinion! I am wondering if it would actually improve the quality of snapshot reviews if Jest didn't write snapshots to a |
Yes, that would be very good. Also, if there are many snapshots, it would be good to confirm it one by one. Currently, pressing |
Yes this would definitely be a very useful thing to have. It would be similar to how you can press |
Note however that this would entail expanding the |
Any update here? I use |
I'm fine with this, and if this workflow works for you, then we should support it. We will have a snapshot acceptance mode at some point, but we aren't there yet :) |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
I need to review created snapshots. By default, it just creates a new snapshot without any information and to do the review I must find this snapshot manually in test.snap.
When I use the
--ci
flag, I can review the snapshot, and when it looks ok, I can just pressu
.Test plan
Added "Received value" + snapshot content.