wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
759 stars 45 forks source link

Log statements outside of the project's code are not displayed in the logs #3410

Closed bobwieler closed 3 days ago

bobwieler commented 4 days ago

Issue description or question

We often need to debug issues that are in libraries that we import. Any console.log statements that are in our project's code is being displayed however any console.log that we add to an imported library are not. This is something that used to work prior to Wallaby 2.0 and is incredibly important for debugging.

As an example, the following is the log output when running the tests:

Screenshot 2024-10-23 at 15 31 36

What gets displayed in Wallaby's logs is:

Screenshot 2024-10-23 at 15 31 46

The console.log statement with "I am inside of a library" is no longer being displayed.

Wallaby diagnostics report

ArtemGovorov commented 3 days ago

Thanks for raising the issue. We had indeed displayed console.log-s from node modules code before, though without any location where they have been logged from. We have just added in to Wallaby 2, and are also now capturing and displaying the location as well: l

Please update to the latest core v1.0.1614 to get the change.