wallabyjs / quokka

Repository for Quokka.js questions and issues
https://quokkajs.com
1.18k stars 31 forks source link

Live Value Display does not work with console.time() #730

Open Akatroj opened 2 years ago

Akatroj commented 2 years ago

Issue description or question

The PRO feature 'Live Value Display' does not display the measured time when using console.timeEnd(). I also noticed the same problem when printing with console.error(). I expected these would work just like console.logging a variable, which shows the result inline in the editor.

Is this issue related to Quokka not outputting the expected results of your code?: Yes

Sample code

console.time('test');
  setTimeout(() => {
    console.timeEnd('test');
  }, 100);

Quokka.js Console Output

The result appears in the console but not in the editor.

test: 116.398ms 

Code editor version

Visual Studio Code v1.63

OS name and version

Windows10 21H1

Rivera-Emmanuel commented 2 years ago

I really need this. Even better if we can view the console.time() output without typing it.

ArtemGovorov commented 2 years ago

@Rivera-Emmanuel Check out our Live Performance testing feature, it allows to measure execution time via a simple comment:

Rivera-Emmanuel commented 2 years ago

Wow! This is amazing. Thank you. This makes my wallaby and quokka pro membership even sweeter.