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

[2] Press "u" to update snapshots from watch mode #1479

Closed
wants to merge 3 commits into from

Conversation

xadn
Copy link
Contributor

@xadn xadn commented Aug 23, 2016

Pressing "u" causes all failing snapshots to be updated. There is no way to select individual snapshots to update yet, but that's something we could think about for the future.

Note: this diff is based off of the changes for #1475, I'm not sure if there's a way to do stacked PRs.

screen shot 2016-08-23 at 2 22 15 pm

@xadn xadn force-pushed the watch-interactive branch from 351a46e to 4639222 Compare August 24, 2016 00:38
@codecov-io
Copy link

codecov-io commented Aug 24, 2016

Current coverage is 62.83% (diff: 2.08%)

Merging #1479 into master will decrease coverage by 0.47%

@@             master      #1479   diff @@
==========================================
  Files            96         96          
  Lines          3608       3635    +27   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2284       2284          
- Misses         1324       1351    +27   
  Partials          0          0          

Powered by Codecov. Last update 081bdd5...4639222

@@ -63,6 +63,7 @@ class SnapshotFile {
this._content = Object.create(null);
if (this.fileExists(filename)) {
try {
delete require.cache[require.resolve(filename)];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3 awesome.

@cpojer
Copy link
Member

cpojer commented Aug 29, 2016

This is super awesome. Would you mind rebasing it so I can merge it?

Eventually we should move the watcher stuff into a separate file, but for now this is fantastic.

@cpojer
Copy link
Member

cpojer commented Aug 29, 2016

See #1508.

@cpojer cpojer closed this Aug 29, 2016
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants