@nestjs/testing
Version:
Nest - modern, fast, powerful node.js web framework (@testing)
9 lines (8 loc) • 369 B
JavaScript
import { InstanceLoader } from '@nestjs/core/internal';
export class TestingInstanceLoader extends InstanceLoader {
async createInstancesOfDependencies(modules = this.container.getModules(), mocker) {
this.injector.setContainer(this.container);
mocker && this.injector.setMocker(mocker);
await super.createInstancesOfDependencies();
}
}