How to unit test with webpack?



I use webpack to build my app. I am now trying to write some unit tests following this guide, but tns test does not appear to work properly when using webpack. I try tns test android --bundle and my app launches with the Karma server, but none of my tests are visible or ran.

How do I run tests (with TypeScript) while using webpack?