Skip to content

fix: Changes to consider only updatePassedSnapshot if updateSnapshot is also true#327

Merged
10xLaCroixDrinker merged 9 commits intoamericanexpress:mainfrom
goverdhan07:main
Jul 25, 2023
Merged

fix: Changes to consider only updatePassedSnapshot if updateSnapshot is also true#327
10xLaCroixDrinker merged 9 commits intoamericanexpress:mainfrom
goverdhan07:main

Conversation

@goverdhan07
Copy link
Copy Markdown
Contributor

@goverdhan07 goverdhan07 commented Mar 27, 2023

Description

updatePassedSnapshot to only update "passed" snapshots when jest --updatesnapshot flag is present.

Motivation and Context

fixes: #325

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.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2023

CLA assistant check
All committers have signed the CLA.

@chetan1507
Copy link
Copy Markdown

chetan1507 commented Apr 2, 2023

can we please merge this?
This is a very useful fix for CI detection in case of missing snapshots.

Comment thread src/diff-snapshot.js
@10xLaCroixDrinker
Copy link
Copy Markdown
Contributor

Please sign the CLA

@goverdhan07
Copy link
Copy Markdown
Contributor Author

Please sign the CLA

hi @10xLaCroixDrinker I have signed the cla but it still says - not signed. Maybe the Github action is broken? please check and let me know.

@goverdhan07 goverdhan07 requested a review from code-forger May 21, 2023 08:26
@10xLaCroixDrinker
Copy link
Copy Markdown
Contributor

For the CLA to work, you need to amend your commits to use the email associated with your GitHub account

@goverdhan07 goverdhan07 force-pushed the main branch 3 times, most recently from 5433bab to 5c55d3b Compare July 23, 2023 10:07
@goverdhan07
Copy link
Copy Markdown
Contributor Author

@code-forger / @10xLaCroixDrinker Please re-review this PR. I have fixed CLA issue now.

Copy link
Copy Markdown
Contributor

@10xLaCroixDrinker 10xLaCroixDrinker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please restore the lockfile.

@10xLaCroixDrinker 10xLaCroixDrinker merged commit b9d9c3f into americanexpress:main Jul 25, 2023
oneamexbot added a commit that referenced this pull request Jul 25, 2023
## [6.1.1](v6.1.0...v6.1.1) (2023-07-25)

### Bug Fixes

* only updatePassedSnapshot if updateSnapshot is also true ([#327](#327)) ([b9d9c3f](b9d9c3f)), closes [#320](#320) [#322](#322) [#324](#324)
@oneamexbot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

updatePassedSnapshot updates all snapshot regardless of jest --updatesnapshot value

7 participants