Executing Typescript Jasmine tests via Webpack (Terminal) to test Angular2

吃可爱长大的小学妹 提交于 2019-12-05 13:21:56

I was taking a look at the angular2 - webpack starter kit again. It worked after I created an extra file for the tests and copied the spec-bundle.js, which is very important!

Another thing that I had to learn is, that jasmine alone won't do it. Karma is the tool that manages all the tasks that are needed in order to start the testing.

Including: Setting up PhantomJS, directing webpack to compile typescript files launching istanbul executing jasmine

Seems like NormalModuleFactory.js:72 error is related to dashes in the webpack config filename. Replacing them with dots should solve the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!