You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I remove the div below the svgs pretty-format has a different crash
/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/collections.js:181
result += indentationNext + name + ': ' + value;
^
RangeError: Invalid string length
at printObjectProperties (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/collections.js:181:47)
at printComplexValue (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:231:42)
at printer (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:301:10)
at printObjectProperties (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/collections.js:179:21)
at printComplexValue (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:231:42)
at printer (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:301:10)
at printObjectProperties (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/collections.js:179:21)
at printComplexValue (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:231:42)
at prettyFormat (/Users/simbekkh/repos/ugh/node_modules/pretty-format/build/index.js:445:10)
at Object.<anonymous> (/Users/simbekkh/repos/ugh/index.js:13:13)
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
What is the expected behavior?
It should not crash, but output beautifully formatted markup
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.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I have a
HtmlDivElement
from jsdom I'm trying to pass thoughpretty-format
. Butpretty-format
dies with an OOM.See https://github.com/SimenB/pretty-format-crash for a reproduction.
If I remove the div below the svgs pretty-format has a different crash
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.What is the expected behavior?
It should not crash, but output beautifully formatted markup
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
[email protected]
,[email protected]
,[email protected]
, macOS.The text was updated successfully, but these errors were encountered: