[英]I'm getting the following deprecation warning when running unit tests in a brand new Angular 11 application:
enter image description here在此处输入图像描述
This is the error that I was getting这是我得到的错误
Unit Testing (This type of error occurs when I run ng test)单元测试(当我运行 ng 测试时出现这种类型的错误)
This error is coming from karma
(it uses log4js
under the hood).这个错误来自
karma
(它在后台使用log4js
)。 The solution is to update karma
to at least ^6.3.12.
解决办法是更新
karma
至少到^6.3.12.
as found here: log4js-node-DEP0004 - Deprecation warning in Angular 12 karma unit tests如下所示: log4js-node-DEP0004 - Angular 12 业力单元测试中的弃用警告
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.