Console.log statements output nothing at all in Jest

前端 未结 8 2006
挽巷
挽巷 2020-12-05 22:11

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

相关标签:
8条回答
  • 2020-12-05 23:09

    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

    0 讨论(0)
  • 2020-12-05 23:12

    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

    0 讨论(0)
提交回复
热议问题