Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@web/test-runner]: Logging complex (including circular) objects brings tests to a near-halt #2798

Open
rschristian opened this issue Aug 30, 2024 · 1 comment

Comments

@rschristian
Copy link

I'm running into an issue where wtr will slow to a near halt, usually timing out, upon encountering "complex" objects to log, which makes debugging tests considerably more difficult. Circular objects are sure to set it off (i.e., DOM nodes), but others with simply enough nesting will do it too. This also presents in the browser with --manual, I'm guessing due to something attempting to intercept all logs.

#1356 (comment) might be related and suggests this might be Mocha, but if so, are there any work arounds? Being able to quickly log a DOM node and other similarly "complex" objects to debug is a pretty crucial feature for my use, the current serializer, wherever it is, seems to really be struggling.

@rschristian
Copy link
Author

The serialization seems to also be so slow as to cause significant issues with our tests that (unfortunately) require forms of await sleep(...); logging of any object at all is often taking upwards of 10-20ms, which is pretty non-representative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant