This article will explain how to create an environment for Angular 2 testing. It uses Karma, webpack and some useful stuffs. And it focuses on simplicity and ease to use. Let’s understand it step by step.
@ngtools/webpack package provides a very easy way to switch compilations of an Angular application from JiT to AoT. It’s used in Angular-CLI. The tool allows us enable AoT compilation without any changes of the application code. Let’s use new great stuff!