Does Jest swallow console.log
output?
// __tests__/log.test.js
it(\'logs\', () => {
console.log(\'hey\') // expect to see \"hey\" printed in t
Update: this issue should be fixed as of Jest 24.
Another partial solution to the current bug affecting tests in --watch
mode is to pass TERM=dumb
as an environment variable.
TERM=dumb jest --watch
This has a small price in that it no longer clears the console before each test run so you have to scroll to see the results.