W3cubDocs

/Angular

withModule

API

function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper;
function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper;
@parammoduleDefTestModuleMetadata
function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
@parammoduleDefTestModuleMetadata
@paramfnFunction
@returns() => any

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/testing/withModule