[英]"Schema validation failed with the following errors: Data path "" should have required property 'karmaConfig' error on running "ng test" - angular
I have been developing with angular with quite some time now but I have never ever written unit tests for any of my angular applications.我已经用 angular 开发了一段时间,但我从来没有为我的任何 angular 应用程序编写过单元测试。 I'm new to unit testing and was looking to get started with unit testing when I came across this issue.
我是单元测试的新手,遇到这个问题时正想着手进行单元测试。
With my angular application setup and based on the documentation I ran "ng test" to explore how the test works but I'm running in to the following error: "使用我的 angular 应用程序设置并根据我运行“ng 测试”的文档来探索测试的工作原理,但我遇到了以下错误:“
Schema validation failed with the following errors:
Data path "" should have required property 'karmaConfig'.
" I'm unable to run anything or move forward because of this “因为这个,我无法运行任何东西或前进
Any help would be appreciated!任何帮助,将不胜感激!
My app had multiple configurations to integrate with depending on the environment so I just had to just run ng test with the following flag.我的应用程序有多种配置可以根据环境进行集成,因此我只需要使用以下标志运行 ng test 即可。
ng test --configuration=local
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.