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

build: make jest optional peerDependency #322

Merged
merged 1 commit into from
Feb 23, 2023
Merged

build: make jest optional peerDependency #322

merged 1 commit into from
Feb 23, 2023

Conversation

noomorph
Copy link
Contributor

Resolves #313.

Description

Makes jest peerDependency less strict, because some other testing libraries also support that jest.extend interface apparently (according to #313).

Motivation and Context

I was passing by that issue and decided to help. 🤷‍♂️

How Has This Been Tested?

This is a relatively trivial change.

Types of Changes

  • Dependency update

Checklist:

  • 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.

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

The library still would warn about incorrect Jest versions but it should not complain about Jest not being installed.

@noomorph noomorph requested a review from a team as a code owner January 18, 2023 18:32
@CLAassistant
Copy link

CLAassistant commented Jan 18, 2023

CLA assistant check
All committers have signed the CLA.

@10xLaCroixDrinker 10xLaCroixDrinker requested a review from a team February 16, 2023 20:00
@JAdshead JAdshead merged commit e596cd1 into americanexpress:main Feb 23, 2023
@noomorph noomorph deleted the build/optional-jest-dependency branch February 23, 2023 17:08
@noomorph
Copy link
Contributor Author

Thank you!

goverdhan07 pushed a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
goverdhan07 added a commit to goverdhan07/jest-image-snapshot that referenced this pull request Jul 23, 2023
10xLaCroixDrinker pushed a commit that referenced this pull request Jul 25, 2023
* chore(deps): bump qs from 6.5.2 to 6.5.3 (#320)

* chore(deps): make jest optional peerDependency (#322)

* chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#324)

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: updatePassedSnapshot to only update passed snapshots when jest --updatesnapshot flag is present

* fix: fixed indentations

* fix: added unit test case

* removed package.json file

* Revert "removed package.json file"

This reverts commit 6cf2343.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
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.

Please add optional peer dependency
5 participants