Closed KonnorRogers closed 3 months ago
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
latest
Steps to reproduce
Reproduction here:
https://github.com/testing-library/dom-testing-library/issues/1191#issue-1465496571
Expected behavior
Should properly serialize a custom element to HTML tags
Actual behavior
Renders the entire JS object
https://github.com/KonnorRogers/shoelace-nextjs-lazy/blob/main/app/__snapshots__/page.test.tsx.snap
Additional context
The
test
function in pretty-format expects the constructor to have a namehttps://github.com/jestjs/jest/blob/c54bccd657fb4cf060898717c09f633b4da3eec4/packages/pretty-format/src/plugins/DOMElement.ts#L49-L50
Environment