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

Cannot interactively ('u' option) update a snapshot when --watchAll parameter is used #5791

Closed
pmaga opened this issue Mar 14, 2018 · 2 comments

Comments

@pmaga
Copy link

pmaga commented Mar 14, 2018

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

To reproduce this problem, do not use neither Git nor Hg repository in the project.
Steps to reproduce:

  1. Create a snapshot for one of your components.
  2. Modify html (make a snapshot to fail).
  3. Run jest --watchAll.
  4. Press u to update failing snapshots.
  5. Get a warning:
    image

This problem does not exist when the project uses the Git repository and the watcher is run by the --watch command.

What is the expected behavior?

Snapshot should be updated and watcher should not be interrupted.

Please provide your exact Jest configuration

System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Binaries:
Node: 8.9.4
Yarn: 1.5.1
npm: 5.6.0
npmPackages:
jest:
wanted: ^22.4.2
installed: 22.4.2

@SimenB
Copy link
Member

SimenB commented Mar 15, 2018

Fixed by #5696, but unreleased

@SimenB SimenB closed this as completed Mar 15, 2018
@github-actions
Copy link

This issue 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 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants