Say I have a function imported from a library
import doSomething from 'someLibrary';
And doSomething
has a console.log() call inside of it. So, when I call do something
doSomething();
Some message
is logged to the console. How do I call the function doSomething
without it logging anything to the console?