Skip to content

Updating snapshots resets --watch state #6137

@g-harel

Description

@g-harel

🐛 Bug Report / To Reproduce

  • run tests in --watch mode.
  • press a to run all tests.
  • press u to update snapshots.

a option is forgotten.

Expected behavior

Should not forget watch mode options after updating snapshots.

Run npx envinfo --preset jest

  System:
    OS: Linux 4.13 Ubuntu 17.10 (Artful Aardvark)
    CPU: x64 Intel(R) Core(TM) i7-8550U CPU @1.80GHz
  Binaries:
    Node: 9.5.0 - ~/.nvm/versions/node/v9.5.0/bin/node
    npm: 6.0.0 - ~/.nvm/versions/node/v9.5.0/bin/npm
  npmPackages:
    jest: ^22.4.3 => 22.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions