首页 > 解决方案 > 角度测试:哪个行错误号失败

问题描述

如何在 Angular 单元测试中获取失败的行号?现在它在下面显示错误,我必须查看代码才能找到实际的行号。它可能在多个地方。

如果没有人知道,这应该是一个新的 Angular 功能请求。

6) ngOnInit should initializeNewBatchForm
     TaxExtensionComponent
     TypeError: Cannot read property 'value' of null
    at <Jasmine>
    at UserContext.<anonymous> (http://localhost:9876/_karma_we

在此处输入图像描述

标签: angulartypescriptkarma-jasmineangular11

解决方案


推荐阅读