How to get console.log messages to show in unit tests

I’m using the in-browser coding window. Very new to exercism.

I note this at the bottom of the exercise instructions:

How to debug

When a test fails, a message is displayed describing what went wrong and for which input. You can also use the fact that any console output will be shown too. You can write to the console using:

console.log('Debug message');

I added some console.logs but the logs are not appearing in the results for the unit test.

Which exercise? Can you share the code? (Please do not use screenshots to share text! Use a codeblock.)

You can see them in the browser console (usually F12).

There is currently an upgrade required on our infrastructure to show it in the test results. This will likely come within the next few days. I’ll ping here when that’s up!

2 Likes

Thank you! Glad to know I’m not losing it.

My organization has disabled ability to view developer tools.

1 Like

It’s any exercise. Looks like there is a problem showing them in the unit test results. And I don’t have access to the developer tools (they are turned off) in my browser.

It will look something like this :slight_smile:

1 Like