Does Jest give console.log
swallowing?
// __tests__/log.test.js it('logs', () => { console.log('hey') // expect to see "hey" printed in terminal }) // terminal output $ jest --forceExit PASS __tests__/log.test.js ✓ logs (1ms)
The main reason I care is that I write some things async beforeAll
and afterAll
, and I want to use console.log statements to debug the order of events.
source share