| 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({ |
nothing calls this directly
no test coverage detected