繁体   English   中英

“架构验证失败,出现以下错误:数据路径“”在运行“ng 测试”时应该具有必需的属性“karmaConfig”错误 - angular

[英]"Schema validation failed with the following errors: Data path "" should have required property 'karmaConfig' error on running "ng test" - angular

我已经用 angular 开发了一段时间,但我从来没有为我的任何 angular 应用程序编写过单元测试。 我是单元测试的新手,遇到这个问题时正想着手进行单元测试。

使用我的 angular 应用程序设置并根据我运行“ng 测试”的文档来探索测试的工作原理,但我遇到了以下错误:“

Schema validation failed with the following errors:
  Data path "" should have required property 'karmaConfig'.

“因为这个,我无法运行任何东西或前进在此处输入图像描述

任何帮助,将不胜感激!

我的应用程序有多种配置可以根据环境进行集成,因此我只需要使用以下标志运行 ng test 即可。

ng test --configuration=local 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM