Skip to content

Doesn't work with DOM nodes, promises etc. #22

@cimak

Description

@cimak
console.error('button element:', document.querySelector('button'));

DOM nodes, especially those containing react fibers, are strigified to a very long strings (1.5MB):
Image

This results in the whole batch not being printed in the terminal!
It should be stringified (e.g. using object-inspect ) to something like <button class="main" data-test-id="buttom_main">...</button>.

Also:

console.log( Promise.resolve('hello'))

is being printed as {} instead of something like Promise [Promise] {} or even Promise [Promise] "hello".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions