Skip to content

Press 'u' in watch mode to update snapshots #1387

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

Closed
lukescott opened this issue May 20, 2017 · 4 comments · Fixed by #1413
Closed

Press 'u' in watch mode to update snapshots #1387

lukescott opened this issue May 20, 2017 · 4 comments · Fixed by #1413
Labels

Comments

@lukescott
Copy link

Ava borrows Jest's snapshot feature, and from #1275 and other issues, this feature is evolving in Ava. That's really awesome.

Jest, in addition, has an interactive watcher that:

  • Runs only tests related to files that have changed
  • Replaces previous console output of passing tests
  • Provides commands to interact with the running watcher

One of the commands is u, which updates snapshots of tests that just ran.

I became familiar with Ava thru @novemberborn when working on babel-plugin-import-glob. I really like Ava, especially with the TAP-like syntax.

Ava just needs an interactive watcher to compliment the snapshot feature.

@sindresorhus
Copy link
Member

We already do the first thing, but I agree, the rest would be very useful too.

@novemberborn novemberborn changed the title Interactive watcher Press 'u' in watch mode to update snapshots May 21, 2017
@novemberborn
Copy link
Member

Let's focus this issue on the u command:

One of the commands is u, which updates snapshots of tests that just ran.

@masaeedu
Copy link

@novemberborn Is there already an issue for a proper interactive UI? I had no idea there was a u option since it didn't seem to be documented, and the console UI provides no indication that this shortcut is available.

@novemberborn
Copy link
Member

@masaeedu yes, see #1525.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants