jest-community / jest-extended

Additional Jest matchers 🃏💪
https://jest-extended.jestcommunity.dev/
MIT License
2.32k stars 223 forks source link

`toContainOneOf([string1, string2, string3])` would be nice #679

Open robertleeplummerjr opened 6 months ago

robertleeplummerjr commented 6 months ago

Feature Request

Description: It would be very nice to do something like expect(text).toContainOneOf([string1, string2, string3]). My current solution involves regex.test, and gives little information about the scenario. This seems like (to me) a natural matcher as part of the already added matchers in this project, like toBeOneOf.

Possible solution: I don't have any solutions at this time.