Make unit tests work with webpack