Console.log语句在Jest中什么也不输出 [英] Console.log statements output nothing at all in Jest

查看:1309
本文介绍了Console.log语句在Jest中什么也不输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

console.log语句在Jest中什么也不输出.昨天这对我有用,突然之间,今天没用.我对配置进行了零更改,并且未安装任何更新.

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 my config and haven't installed any updates.

我没有使用--forceExit选项.仍然看到这个问题.

I'm not using the --forceExit option. Still seeing this issue.

推荐答案

根据 https:上的评论: //github.com/facebook/jest/issues/2441

尝试在package.json的jest选项中设置verbose:false(或将其删除).

Try setting verbose: false (or removing it) in the jest options in package.json.

这篇关于Console.log语句在Jest中什么也不输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆