Skip to content

browser-shim.js prevents nice console logs #100

@derwaldgeist

Description

@derwaldgeist

If I run tests in the browser, all console logs in the browser are somehow redirected to browser-shim.js, which forces the output to a simple string instead of a nicely formatted log (e.g. objects that can be inspected).

image

This applies to the whole app, not only logs from the tests. This is caused by browser-shim.js overriding console.log. In the code, I can see that mocha seems to need console.format. But why are log and error overridden, too? Is there a way to workaround this behavior?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions