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

查看:118
本文介绍了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.

推荐答案

如果您还想同时观看文件并查看输出.

You can run both options together like this --watch --verbose false if you want to also be watching the files and see the output.

只运行一次--verbose false

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

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