This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

@angular/router/testing

Entry point exports

NgModules

RouterTestingModule

Sets up the router to be used for testing.

Classes

SpyNgModuleFactoryLoader

Allows to simulate the loading of ng modules in tests.

Functions

setupTestingRouter

Router setup factory function used for testing.