2017-03-06 45 views
0

阅读https://medium.com/javascript-scene/why-i-use-tape-instead-of-mocha-so-should-you-6aa105d8eaf4#.z023p7yvd我认为我会为我的Angular2评估项目给磁带一个镜头。 但在磁带测试文件中使用Testbed with import {TestBed, async} from '@angular/core/testing'; 似乎不能直接解决问题。编译TS文件有效,但有错误,运行js文件会产生区域错误。我不会打扰你的代码。我的问题是更主要的问题: 有没有人用过Angular2-Testbed的磁带?或者还有另一个简单的方法来使用磁带进行Angular2单元测试而不使用Testbed?我可以在Angular2 Testbed中使用`tape`测试工具吗?

回答

相关问题