Skip to content

Commit a4411d1

Browse files
authored
Support anonymous custom element constructors
1 parent c54bccd commit a4411d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pretty-format/src/plugins/DOMElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const testNode = (val: any) => {
4747
};
4848

4949
export const test: NewPlugin['test'] = (val: any) =>
50-
val?.constructor?.name && testNode(val);
50+
val?.constructor && testNode(val);
5151

5252
type HandledType = Element | Text | Comment | DocumentFragment;
5353

0 commit comments

Comments
 (0)