Skip to content

Commit

Permalink
Support anonymous custom element constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers authored Jun 19, 2024
1 parent c54bccd commit a4411d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pretty-format/src/plugins/DOMElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const testNode = (val: any) => {
};

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

type HandledType = Element | Text | Comment | DocumentFragment;

Expand Down

0 comments on commit a4411d1

Please sign in to comment.