I am trying to implement karma unit testing possibilities with my Ionic2 rc1 (using angular 2.0.0) application that's based upon angular2-redux. The karma setup is basically adopted from the following repo: https://github.com/lathonez/clicker and works fine. I have a simple counter redux implementation working fine as well. When I try to setup angular2-redux for my testing, I get the following error:
Uncaught ReferenceError: process is not defined at webpack:///Users/luki/Applications/ionic/ionic2-redux-example/~/redux/es/index.js:14:0 <- src/test.ts:65041
I know process is not defined in the browser but only available for node on the server. How do I need do adjust my karma config to be able tu use angular2-redux ?
Calling the createAppStoreFactory function to provide my AppStore in TestBed.configureTestingModule causes this error.
My test setup can be found in the following repo: https://github.com/lujakob/ionic2-redux-example/blob/master/src/test.ts
Any help appreciated!
(the npm angular2-redux has a demo app and a sample test setup. But this relies