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

fix incorrect stats reported to jest #257

Merged
merged 2 commits into from
Apr 1, 2021
Merged

fix incorrect stats reported to jest #257

merged 2 commits into from
Apr 1, 2021

Conversation

k-yle
Copy link
Contributor

@k-yle k-yle commented Mar 4, 2021

Description

Closes #243. See that issue for details.

Motivation and Context

When jest finishes, the statistics shown are wrong if some snapshots failed.

How Has This Been Tested?

There are no existing tests that assert on what is reported to jest because UNSTABLE_SKIP_REPORTING is enabled.

I've tested this manually in a simple project.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using Jest-Image-Snapshot?

Stats reported to jest are now correct.

@k-yle k-yle requested a review from a team as a code owner March 4, 2021 06:20
@k-yle k-yle mentioned this pull request Mar 4, 2021
10 tasks
@marcusrbrown marcusrbrown merged commit e8f949a into americanexpress:master Apr 1, 2021
oneamexbot added a commit that referenced this pull request Apr 1, 2021
## [4.4.1](v4.4.0...v4.4.1) (2021-04-01)

### Bug Fixes

* incorrect stats reported to jest ([#257](#257)) ([e8f949a](e8f949a))
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 4.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@k-yle k-yle deleted the 243-report-stats-bug branch April 1, 2021 07:08
goverdhan07 pushed a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
goverdhan07 pushed a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Total snapshots not matching the number of tests
4 participants