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 toIncludeSameMembers matcher #122

Merged
merged 3 commits into from
Jul 30, 2018

Conversation

denizdogan
Copy link
Contributor

@denizdogan denizdogan commented Apr 18, 2018

What

Feature

Why

Because this matcher was needed for a project of mine :)

Notes

As discussed in #114 the name could probably be improved. I found it rather difficult to formulate a concise and correct description of the matcher in README.md, help would be appreciated.

I haven't used Jest's snapshot feature much, so it's possible that the snapshot file could be improved. I'm honestly not sure what it's supposed to contain exactly.

Housekeeping

  • Unit tests
  • Documentation is up to date
  • No additional lint warnings
  • Add yourself to contributors list (yarn contributor)

@denizdogan
Copy link
Contributor Author

I'm not sure what the CI build failure is all about, it occurred a few times while I was developing this patch locally. I haven't touched toHaveBeenCalledBefore, so I don't think it's my fault! ;)

@xprnio
Copy link
Contributor

xprnio commented Apr 25, 2018

I think that the reason CI fails is because the functions called are executed too quickly in between each other.

@mattphillips
Copy link
Member

Thanks @denizdogan all looks good. I'm still a little unsure of the name, I think I will rename it to be closer to the other Array matchers as .toIncludeSameMembers

@mattphillips mattphillips merged commit e306871 into jest-community:master Jul 30, 2018
@denizdogan denizdogan deleted the issue-114 branch July 30, 2018 15:07
@mattphillips mattphillips changed the title Add toMatchArray matcher Add toIncludeSameMembers matcher Jul 30, 2018
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Nov 25, 2020
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Dec 5, 2020
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Dec 8, 2020
gnprice pushed a commit to chrisbobbe/zulip-mobile that referenced this pull request Dec 9, 2020
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.

None yet

3 participants