/ionic-unit-testing-example

Example of adding unit testing in your Ionic 2.x or greater apps with Karma and Jasmine

Primary LanguageTypeScript

Ionic Unit Testing Example

Based on the awesome unit testing example from @roblouie 👍

Clone repo, run npm install.

Unit Tests

To run the tests, run npm test.

See the example test in src/app/app.component.spec.ts for an example of a component test.

End-To-End Tests (Browser-Only)

To serve the app, run ionic serve.

To run the end-to-end tests, run (while the app is being served) npm run e2e.

See the example end-to-end test in e2e/app.e2e-spec.ts.