#logger not work on test process

3 messages · Page 1 of 1 (latest)

chrome iron
#

Why do I use a logger from @nestjs/common and have initials it.
private readonly logger = new Logger(AIService.name);
but when I run the test code it didn't work. but console.log(this.aiConfig); is work.

fresh skyBOT
#

When asking for help with a problem, don't just say, "X doesn't work" or "Y did not fix it" actually describe the error.
If there is an error message, share it. If it did not function as expected, describe how it behaved and how you expected it to behave.
If you haven't already, or haven't recently, share the code that is not working and any code we may need to help diagnose the error.

earnest kiln
#

logger is disabled by default in Test.createTestingModule