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

Allow to access snapshot comparison details #5034

Open
segrey opened this issue Dec 7, 2017 · 0 comments
Open

Allow to access snapshot comparison details #5034

segrey opened this issue Dec 7, 2017 · 0 comments

Comments

@segrey
Copy link

segrey commented Dec 7, 2017

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

Feature

What is the current behavior?

Currently, reporters don't have access to snapshot comparison details:

  • actual and expected values
  • expected snapshot file path

What is the expected behavior?

Exposing this data would allow tools to show a standard comparison dialog (which would be more convenient for large snapshots than inline diff). Also, exposing expected snapshot file path would allow to update snapshot files right in the comparison dialog without the need of rerunning tests with -u.
There is a similar request #4547. However, seems it's a bit more general, so, I've decided to file a more specific issue targeting the standard jest-snapshot matcher.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

node 9.2.0
jest 21.2.1

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

No branches or pull requests

3 participants