Basic Unit Testing in Ionic
We are asked constantly how to do proper unit testing of Ionic apps. To help developers get going quickly, we’ve worked with community member @roblouie to put together an official example project with unit testing baked right in, using Karma and Jasmine (also thanks to @lathonez for his clicker project and Josh Morony for his great tutorials that inspired this).
We’re also working on baking unit testing right into the Ionic CLI (or more accurately, @ionic/app-scripts
). Stay tuned for that.
Take a look at the official Unit Testing example and let us know what you think: https://github.com/driftyco/ionic-unit-testing-example.