Does Jest swallow console.log statements? Is there a way to change this?

后端 未结 5 1783
闹比i
闹比i 2021-02-11 17:14

Does Jest swallow console.log output?

// __tests__/log.test.js

it(\'logs\', () => {
  console.log(\'hey\') // expect to see \"hey\" printed in t         


        
5条回答
提交回复
热议问题