console.log
statements output nothing at all in Jest. This was working for me yesterday, and all of sudden, it\'s not working today. I have made zero changes to
Jest suppresses the console log message by default. In order to show the console log message, set silent option to false at the command line
set --silent=false
in the command line:
npm run test -- --silent=false
You can run both options together like this --watch --verbose false
if you want to also be watching the files and see the output.
for one time runs just do --verbose false