Skip to content

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

@lukescott

Description

@lukescott

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions