Skip to content

Commit 59b21a5

Browse files
Disable callToJSON option used by pretty-format
1 parent 56543d5 commit 59b21a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/pretty-dom.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function prettyDOM(dom, maxLength, options = {}) {
7979
plugins: [createDOMElementFilter(filterNode), DOMCollection],
8080
printFunctionName: false,
8181
highlight: shouldHighlight(),
82+
callToJSON: false,
8283
...prettyFormatOptions,
8384
})
8485
return maxLength !== undefined && dom.outerHTML.length > maxLength

0 commit comments

Comments
 (0)