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: toIncludeAllPartialMembers types #370

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Conversation

idan-at
Copy link
Contributor

@idan-at idan-at commented Oct 18, 2021

Fixes the faulty copy/paste here 😅

@codecov
Copy link

codecov bot commented Oct 18, 2021

Codecov Report

Merging #370 (393625a) into main (8f600b1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #370   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          135       135           
  Lines          833       833           
  Branches       144       144           
=========================================
  Hits           833       833           

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 8f600b1...393625a. Read the comment docs.

types/index.d.ts Outdated
@@ -74,7 +74,7 @@ declare namespace jest {
* Use `.toIncludeAllPartialMembers` when checking if an `Array` contains all of the same partial members of a given set.
* @param {Array.<*>} members
*/
toIncludeAllMembers(members: any[]): R;
toIncludeAllPartialMembers(members: any[]): R;
Copy link
Member

Choose a reason for hiding this comment

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

should this have the <E = any> above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, it can make it stricter. will add

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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 merged commit c3bf852 into jest-community:main Oct 18, 2021
@idan-at idan-at deleted the patch-2 branch October 18, 2021 11:52
@revmischa
Copy link

Thank you!

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.

3 participants