toHaveClass(..., { exact: true })
's Received/Expected output is buggy
#397
Labels
toHaveClass(..., { exact: true })
's Received/Expected output is buggy
#397
@testing-library/jest-dom
version: 5.14.1node
version: v16.7.0npm
(oryarn
) version: 7.21.0@testing-library/react
version: 12.0.0Relevant code or config:
What you did:
Testing an element's exact
class
What happened:
When the assertion fails, the output is garbled:
Reproduction:
See relevant code above.
Problem description:
Well it's not the expected output that's for sure.
Suggested solution:
Should work similarly to when
exact: false
is used:The text was updated successfully, but these errors were encountered: