Fixing an issue when event reporter is executed before coverage reporter, which was causing the test command to pass even though unit testing coverage thresholds were not met.
This should clean up the code a bit.
Note: at first I added the no-useless-cast rule, but after getting frustrated
with it (as it has many false positive), I decided to remove the rule but some
useless casts were removed so I let those in the PR.
- If you look at https://github.com/webpack-contrib/less-loader#less-resolver, it states that
if you provide paths, it will use the less resolver. We should only use the less-resolver when
stylePreprocessorOptions.includePaths are actually given.
- This fixes issues where if in your less file you `@import "~@dependency/less-file";` it actually
resolves correct and when you import something like `@import "some-local-file";` it actually
recompiles when `ng build --watch` is ran.