augmenttoolkit / node_modules /@nestjs /testing /testing-injector.d.ts
Leon4gr45's picture
Include updated package-lock.json (part 11)
2a1c46d verified
Raw
History Blame Contribute Delete
1.11 kB
import { NestContainer } from '@nestjs/core';
import { Injector, InjectorDependencyContext } from '@nestjs/core/injector/injector';
import { ContextId, InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
import { Module } from '@nestjs/core/injector/module';
import { MockFactory } from './interfaces';
interface ResolutionContext {
contextId: ContextId;
inquirer?: InstanceWrapper;
effectiveInquirerId?: string;
}
/**
* @publicApi
*/
export declare class TestingInjector extends Injector {
protected mocker?: MockFactory;
protected container: NestContainer;
setMocker(mocker: MockFactory): void;
setContainer(container: NestContainer): void;
resolveComponentWrapper<T>(moduleRef: Module, name: any, dependencyContext: InjectorDependencyContext, wrapper: InstanceWrapper<T>, resolutionContext?: ResolutionContext, keyOrIndex?: string | number): Promise<InstanceWrapper>;
resolveComponentHost<T>(moduleRef: Module, instanceWrapper: InstanceWrapper<T>, resolutionContext?: ResolutionContext): Promise<InstanceWrapper>;
private mockWrapper;
}
export {};