Protractor/Jasmine bug in Angular:
Fix by using: expect<any>
When adding routing to an AngularCLI project you need to also update the startup test with the RouterTestingModule.
Failure to do so results in the following error when running ng test:
Here is the fix (click on the image to enlarge):
Source code available here:
https://github.com/stevenh77/angular-lob-app/commit/f582ecf5034af3222a686ae0e9f237f6528aefa6
To get wallaby.js working after you have generated your project with angular-cli
, you'll need to do the following:
npm install wallaby-webpack angular2-template-loader electron --save-dev
.Here are examples of Wallaby running my server code (simple data api returning json data) and the Angular UI: