MCPcopy
hub / github.com/nestjs/nest / UnusedTransient

Class UnusedTransient

packages/core/test/nest-application-context.spec.ts:551–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 describe('snapshot bootstrap', () => {
550 it('should not eagerly instantiate an unused transient provider', async () => {
551 @Injectable({ scope: Scope.TRANSIENT })
552 class UnusedTransient {
553 static constructorCalls = 0;
554
555 constructor() {
556 UnusedTransient.constructorCalls++;
557 }
558 }
559
560 const nestContainer = new NestContainer();
561 const injector = new Injector({

Callers

nothing calls this directly

Calls 1

InjectableFunction · 0.90

Tested by

no test coverage detected