This is a starter Ionic project with Karma / Jasmine for the reference of anyone having trouble setting up Unit Testing with Ionic 2.
Reference: https://www.joshmorony.com/introduction-to-testing-ionic-2-applications-with-testbed/
git clone https://github.com/sarahsga/ionic2-blank-karma.git
cd ionic2-blank-karma
npm install
ng test
ionic serve
NOTE: if the above command does not generate a www folder and gives an error, update your ionic-cli to the latest version using the following command:
npm install ionic -g
This project is licensed under the terms of the MIT license.