-
-
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
[2] Press "u" to update snapshots from watch mode #1479
Conversation
2e30570
to
351a46e
Compare
351a46e
to
4639222
Compare
Current coverage is 62.83% (diff: 2.08%)@@ 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
|
@@ -63,6 +63,7 @@ class SnapshotFile { | |||
this._content = Object.create(null); | |||
if (this.fileExists(filename)) { | |||
try { | |||
delete require.cache[require.resolve(filename)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3 awesome.
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. |
See #1508. |
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. |
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.