Commit 7b9a64a
committed
refactor(logger): update logger type and enhance setupLogger function
- Changed Logger type from pino.Logger to PinoLogger for consistency.
- Modified setupLogger to accept an optional isGlobal parameter, allowing for more flexible logger initialization.
- Reintroduced serializers in the logger setup for improved logging structure.
- Updated getLogger to return a fresh logger instance when newInstance is true, enhancing request handling.
- Adjusted the global logger initialization to be conditional based on the isGlobal parameter.
test(decorator): add comprehensive parameter options tests
- Introduced a new test suite for parameter options in decorators.
- Implemented tests for various parameter types including string, number, boolean, array, and object.
- Added tests for default values, required parameters, custom validation, and transformation functions.
- Ensured robust handling of edge cases, null values, and direct array inputs.
- Included tests for extracting headers using the @ReqHeader decorator with case insensitivity.1 parent 9f6a7fd commit 7b9a64a
5 files changed
Lines changed: 2096 additions & 189 deletions
File tree
- docs/docs/utils
- src/utils
- tests/utils
0 commit comments