NestContainer
addModule
should add global module when module is global:
NestContainer
replaceModule
should add global module when module is global:
Exception:
TypeError: Cannot read properties of undefined (reading 'call')
at Module.set isGlobal [as isGlobal] (packages/core/injector/module.ts:1067:36)
at NestContainer. (packages/core/injector/container.ts:758:28)
at async NestContainer. (packages/core/injector/container.ts:723:20)
at async Context. (packages/core/test/injector/container.spec.ts:63:7)
via
npm test
in nestjs/nestTest cases:
Exception: