Closed kylorhall-atlassian closed 9 months ago
Latest commit: 9e44b53e5ac575cfe68c07a4460643922e6b6045
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I found it difficult to debug with
toHaveCompiledCss
, particularly in the case of local css variables being resolved by jest-dom (I think that's how it works), as the error for "could not findpadding: 8px
" doesn't tell you if it was wrong or just doesn't exist.Now this should have a a clearer error:
This could go a step further and show all css properties or have a debug mode I couldn't find, but that could get quite spammy…
_Tested locally in a repo consuming it by tweaking the nodemodules:
Before:
After: