-
Notifications
You must be signed in to change notification settings - Fork 469
Description
Describe the feature you'd like:
Please can we have a way to stop outputting the HTML of the DOM when there's an error? I can't think of a single time I've found this helpful, and outputting 9000 characters for every failed test means I can't read the output in the console window in any sensible way.
This one issue has put off work mates from wanting to use this library! And the library is super awesome!
I'm not sure if testing-library can read my Jasmine conf? But it'd ideally not be an environment variable, because its tricky to get the Karma runner to read them :(
Describe alternatives you've considered:
I've tried setting the PrettyDOM limit to 0 using the env variable - but a) that means I can't then manually run debug(el)
to see some actually useful HTML and b) it doesn't work with Karma (I'm using testing-library
with Karma in an Angular project, which I realise is pretty unusual - but I love it too much!!).