API > @angular/core > @angular/core/testingmode_edit codeInjectSetupWrapperlinkclass目录构造函数方法inject() class InjectSetupWrapper { constructor(_moduleDef: () => TestModuleMetadata) inject(tokens: any[], fn: Function): () => any } 构造函数link constructor(_moduleDef: () => TestModuleMetadata) 参数 _moduleDef () => TestModuleMetadata方法linkinject() linkmode_edit code inject(tokens: any[], fn: Function): () => any 参数 tokens any[] fn Function返回值() => any