This adds a new matcher that inverts the passed-in matcher.
This matcher is really useful when you're working with matchers taking in other matchers, such as allPass, map, satisfyAllOf, satisfyAnyOf and so on.
Future work would be to refactor how Expectation, AsyncExpectation, Requirement, AsyncRequiment such that toNot/notTo are syntax sugar for to(not(...)). But that's a larger refactor than I want to do for this PR.
fixes #1150
Checklist - While not every PR needs it, new features should consider this list:
[x] Does this have tests?
[x] Does this have documentation?
[x] Is this a new feature (Requires minor version bump)?
This adds a new matcher that inverts the passed-in matcher.
This matcher is really useful when you're working with matchers taking in other matchers, such as
allPass
,map
,satisfyAllOf
,satisfyAnyOf
and so on.Future work would be to refactor how Expectation, AsyncExpectation, Requirement, AsyncRequiment such that
toNot
/notTo
are syntax sugar forto(not(...))
. But that's a larger refactor than I want to do for this PR.fixes #1150
Checklist - While not every PR needs it, new features should consider this list: