You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests in a CI environment, we will fail test runs that create new snapshots (that were either updated or not committed ahead of the CI run).
The output from Jest is something like:
Snapshot Summary
* 2 snapshots written in 1 test suite.
* 2 obsolete snapshots found, run with `npm test -- -u` to remove them.
What is the expected behavior?
Ideally, this would tell us both which suites and which tests caused those to be written. It would be much quicker to debug where the issue is instead of needing to run a thousand test suites with --updateSnapshots and wait for that to finish.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest v20.0.4
The text was updated successfully, but these errors were encountered:
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.
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
When running tests in a CI environment, we will fail test runs that create new snapshots (that were either updated or not committed ahead of the CI run).
The output from Jest is something like:
What is the expected behavior?
Ideally, this would tell us both which suites and which tests caused those to be written. It would be much quicker to debug where the issue is instead of needing to run a thousand test suites with
--updateSnapshots
and wait for that to finish.Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
The text was updated successfully, but these errors were encountered: