Hybrid AngularJS/7 cannot find node_modules

I have an angularjs 1.5 upgrade to Angular 7. When I run ng serve and ng build they work, but when I run ng test, I got the errors that the required node_modules in my Angularjs application can not be found, I tried removing the node_modules folder at the front of the path in the require method as describe here https://stackoverflow.com/a/24353315/6105852 but I got again the module styleloader!node_modules/breeze=cient-labs/breeze.directive.css could not. Any help with this would be appreciate.

Source: AngularJS