toHaveStyleRule to work with not passed expected value and negated ".not" modifier #206
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the input from #205 I'm creating this PR to add a feature to
toHaveStyleRule
to be able to work with a negated ".not" modifier and a not passed expected value to allow the following syntax:Key-points:
I know the work on this project is currently focused around compatibility with SCv4, however this should be merged on existing master and be followed by an new npm release.
This will not only allow existing users to benefit from this feature even before SCv4 work is completed but will also allow users who are not going to update to SCv4 in the near future from having a new feature available.
This PR can then be merged into the v4 branch to reflect the changes introduced.