简体   繁体   English

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

[英]"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.

相关问题 无法构建 APP - 架构验证失败并出现以下错误:数据路径“.builders['cordova-build']”应该具有必需的属性“class” - Unable to build APP - Schema validation failed with the following errors: Data path ".builders['cordova-build']" should have required property 'class' 在 Angular 应用程序中运行 ng 测试时出现空注入器错误 - Getting the null injector errors while running ng test in angular application 错误产品验证失败:userId:nodejs a中需要路径`userId` - error Product validation failed: userId: Path `userId` is required in nodejs a 错误:Uploaddb 验证失败:文件:需要路径“文件” - Error: Uploaddb validation failed: file: Path `file` is required 错误:文件验证失败:内容:需要路径“内容”。标题:需要路径“标题” - Error: File validation failed: content: Path `content` is required., title: Path `title` is required Angular Form Validation:$ error.required甚至在使用自定义输入指令的ng-required = false时设置 - Angular Form Validation: $error.required set even when ng-required=false with custom input directive 使用Ng必需的角形式验证 - Angular Form Validation Using Ng-Required ZCCADCDEDB567ABAE643E15DCF0974E503Z:需要验证错误路径 - Mongoose: validation error path is required 角形式-禁用ng-required的验证 - Angular form - disable validation by ng-required 用户验证失败:email:需要路径“电子邮件” - User validation failed: email: Path `email` is required
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM