Angular version 18 – Alternate of SpyNgModuleFactoryLoader for unit testing of lazy loading
I am trying to write unit test case of lazy loading module with canMatch guard. i have checked multiple threads here stackoverflow but the provided solutions either out dated or not workable.In angular version ~13 SpyNgModuleFactoryLoader was depriciated and in latest version 18 it is no longer available. Is there any alternate to test lazy loading module with loadChildren ?