I work on an AngularJS 1.6.X ES6 application. I use Mocha and Sinon to write and run unit tests on it.
I started to hybrid/upgrade this application with ngUpgrade in order to write the new components in angular. So now, I got some angularJS modules and some angular modules.
I use @angular-builders/custom-webpack
with babel-loader
and ng-annotate-loader
to properly load the AngularJS modules.
I want to run the existing unit tests of the AngularJS modules at the same time as the unit tests of the new angular modules. Ideally, I would also like to have a common code coverage report for AngularJS and angular modules.
Is it possible to do it with angular-cli ng test
?
Which Karma configuration do you recommend?