1

I am currently running a few simple jest test suites to familiarize myself with these test in a react application, all located in a __tests__ directory in the frontend directory of my program. The complication I am running into: when I have multiple test files, jest will run each test file and the output will show whether or not I am passing the entire suite but not each individual it block in the suite. I am using the --watch flag to monitor only files that have changed since my latest git commit. I can fix this by using the suggestion from this question however when I set "verbose": true in my jest config inside package.json I no longer can view the console.log's in the terminal. When I change this to "verbose": false I can view the console.log's but I can no longer see all of the test descriptions and which ones are passing/failing.

Is there any way to view both the console.log's from each it block and each test's description in my console?

"verbose": false:

console.log appearing, test descriptions not appearing

"verbose": true:

console.log not appearing, test descriptions appearing

CalamityAdam
  • 304
  • 3
  • 11
  • update: _SOME_ console.log's are appearing... `console.log('hi')` is NOT appearing, but `console.log(wrapper.debug())` IS appearing. `wrapper` here is a shallow mounted component. – CalamityAdam Jan 02 '19 at 03:58

0 Answers0