Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup karma/jasmine to work with ionic2?

Ionic2 was written with typescript and based on angular2. Is it possible to write unit test and e2e test for this? If it's possible, how can we do it?

Sorry for my test framework knowledge, I don't have much experience in karma and jasmine.

like image 312
Nam Pham Avatar asked Dec 17 '15 15:12

Nam Pham


1 Answers

My colleague has created a simple "Counter" style app with karma/jasmine tests.

Check it out here: https://github.com/lathonez/clicker

Updated to ionic2 (2.0.0-beta.0) and Angular2 (2.0.0-beta.3) - give it a try and open an issue if you need assistance.

like image 154
Wulf Solter Avatar answered Nov 03 '22 19:11

Wulf Solter