如何在带有单元测试文件的angular的共享代码上运行android

时间:2018-09-04 21:30:22

标签: nativescript-angular

嗨,我有一个角度共享代码项目,运行时:

tns run android --bundle

由于单元测试文件,我得到了错误,例如:

src/app/utils/pages/tripnotes/tripnotes.component.spec.ts(5,1): error TS2304: Cannot find name 'describe'.
src/app/utils/pages/tripnotes/tripnotes.component.spec.ts(9,3): error TS2304: Cannot find name 'beforeEach'.
src/app/utils/pages/tripnotes/tripnotes.component.spec.ts(16,3): error TS2304: Cannot find name 'beforeEach'.
src/app/utils/pages/tripnotes/tripnotes.component.spec.ts(22,3): error TS2304: Cannot find name 'it'.
src/app/utils/pages/tripnotes/tripnotes.component.spec.ts(23,5): error TS2304: Cannot find name 'expect'.

是否可以在不删除这些文件的情况下运行项目?

0 个答案:

没有答案
相关问题