General Information
Description
Similar to how other utilities provide negative matchers (such as expect's toNotExist) I would like to either see toNotHaveStyleRule supported in styled-components-test-utils or would love advice on how to achieve the same effect without updating this library. I came looking for this feature because I would like to write a test case for a styled component where I assert that a style is not present and then in a second test case, with a prop set, assert that the style is present. That way I have full coverage of both possible branches. Please let me know if any of this is not clear. Thanks in advance for the help!
Versions
General Information
Description
Similar to how other utilities provide negative matchers (such as expect's toNotExist) I would like to either see
toNotHaveStyleRulesupported instyled-components-test-utilsor would love advice on how to achieve the same effect without updating this library. I came looking for this feature because I would like to write a test case for a styled component where I assert that a style is not present and then in a second test case, with a prop set, assert that the style is present. That way I have full coverage of both possible branches. Please let me know if any of this is not clear. Thanks in advance for the help!Versions
styled-components-test-utils: 0.4.1
node: 8.11.4
jest: n/a
expect: 1.20.2
chai: n/a
jasmine: n/a