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

Add matcher for Array.toSatisfyAny #227

Merged

Conversation

blockscoped
Copy link
Contributor

What

Feature: Add matcher for Array.toSatisfyAny

Why

This is a matcher I find myself in common need of.

Notes

Similar to Array.toSatisfyAll but uses Array.some instead of Array.every

Housekeeping

  • [✓] Unit tests
  • [✓] Documentation is up to date
  • [✓] No additional lint warnings
  • [✓] Typescript definitions are added/updated where relevant

@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #227 (5e1df54) into main (4c14fba) will increase coverage by 100.00%.
The diff coverage is 100.00%.

❗ Current head 5e1df54 differs from pull request most recent head e95046e. Consider uploading reports for the commit e95046e to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           main      #227        +/-   ##
===========================================
+ Coverage      0   100.00%   +100.00%     
===========================================
  Files         0       111       +111     
  Lines         0       563       +563     
  Branches      0        98        +98     
===========================================
+ Hits          0       563       +563     
Impacted Files Coverage Δ
src/matchers/toSatisfyAny/index.js 100.00% <100.00%> (ø)
src/matchers/toSatisfyAny/predicate.js 100.00% <100.00%> (ø)
src/matchers/toBeBoolean/predicate.js 100.00% <0.00%> (ø)
src/matchers/toBeFalse/predicate.js 100.00% <0.00%> (ø)
src/matchers/toBeNaN/index.js 100.00% <0.00%> (ø)
src/matchers/toContainKeys/predicate.js 100.00% <0.00%> (ø)
src/matchers/toContainAllEntries/predicate.js 100.00% <0.00%> (ø)
src/matchers/toContainValues/index.js 100.00% <0.00%> (ø)
src/matchers/toBeArray/index.js 100.00% <0.00%> (ø)
src/matchers/toHaveBeenCalledAfter/index.js 100.00% <0.00%> (ø)
... and 101 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c14fba...e95046e. Read the comment docs.

@SimenB SimenB linked an issue Oct 6, 2021 that may be closed by this pull request
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks!

@SimenB SimenB changed the title Closes #226 Add matcher for Array.toSatisfyAny Add matcher for Array.toSatisfyAny Oct 6, 2021
@SimenB SimenB merged commit ee70268 into jest-community:main Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Matcher: Array.toSatisfyAny
3 participants