DEV Community

Discussion on: Make Your Jest Tests up to 20% Faster by Changing a Single Setting

Collapse
 
fllprbt profile image
fllprbt (Alkis Giouv)

Thanks for the article, how did you benchmark --watch?

Collapse
 
kamilius profile image
Oleksandr Hutsulyak

You don't need to benchmark "--watch" as it's basically running your tests over and over again.
If you want to benchmark npm script, which uses watch, just pass --watchAll=false to disable watch for that script

Collapse
 
fllprbt profile image
fllprbt (Alkis Giouv)

Sure, I mean if that's adequate to measure runtime performance of watched tests I 'm fine.