Creating the unit test cases for angular app, application functionality divided into module based on the requirement.
Needed components, modules and angular material components are imported in module file so that no need of import in the component files, but while executing the
ng test
returning the error for module not found since not included in component.spec.ts file.
For fixing this importing the all the modules and services inside the spec files ,is there any best and simple way to import the modules to all the spec file to avoid duplication and time consumption.