Last Updated: September 09, 2019
·
1.726K
· michaelbreyes

Testing an Ionic app with Jest

I had some initial hangups getting the two to play together nicely. Turned out that the version of angular bundled with Ionic did not work with angular-mocks. Also, I needed to setup a few things on the window object.

This article explains in detail how I set up testing of an angular service (that also relies on another angular service within the app).

http://blog.thebrownmamba.com/2014/06/unit-testing-your-ionic-angular-app.html