Last Updated: September 09, 2019
·
1.982K
· 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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

AngularJS pages are long-lived browser apps with the same script risk as a newer single-page app. Third-party code in the template can read forms and values rendered on the page.

Security insights from Cside