From e850299b01f540ad2f08edaabe3de92b0d5d1f09 Mon Sep 17 00:00:00 2001 From: p-sw Date: Fri, 29 Nov 2024 21:50:05 +0900 Subject: [PATCH] feat: add testOptionOverriding test --- src/test/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/index.ts b/src/test/index.ts index 15c76ed..c40c65d 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -184,6 +184,11 @@ class LoggedClass { async testService(@InjectLogger logger?: ScopedLogger) { this.service.service('A', logger); } + + @LoggedFunction({ skipCallLog: true, skipReturnLog: true }) + testOptionOverriding(@InjectLogger logger?: ScopedLogger) { + logger.log("testOptionOverriding"); + } } class LoggedMethodsClass { @@ -400,6 +405,7 @@ class LoggedMethodsClass { // tester.testSyncLoggerRootLogging(); // tester.testSyncLogging(); // void tester.testService(); +// tester.testOptionOverriding(); /** * Then run `yarn test`