-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: configure logging wrapper #152
Conversation
"eslint-plugin-prettier": "^5.1.3", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.2.5", | ||
"ts-jest": "^29.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually, we avoid Jest while testing Node.js applications in favour of other test frameworks (like TAP) due to some known issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch!
I've used that because we have explicit request of do that in our docs
Anyway, thank you, I will update tests and docs!
@SamSalvatico I like the approach! Would be cool to see some usage examples as well. Can you please add just a basic usage example? Feel free to use the |
* feature(logging-wrapper): added tests helper * Added README for logging-wrapper * Added tap * Added gitignore * Tap config * Added tests for logging-wrapper.test.ts * Added fastify tests * Chore: Use logging-wrapper in payments-api (#160) * Updated wrapper to be built * Updated commands to build logging wrapper * Removed useless files * Payments api is using logging wrapper * Updated error response management * Updated version * Fixed logging wrapper tests * Updated packages * Copy logging wrapper in the dockerfile * Added error handling package * Added package script * Optional logging hooks * Removed logging hooks * Started working on error handling tests * Started working on error handling tests * Added tests for not found handler * Added logging hooks * Removed useless copy * Renamed to error-handler * Updated sdk definitions
@GiuliaTeggi @Thurfjell I've merged previous PRs on this, splitting concerns between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readded
Description
Write a logging wrapper for Fastify that would help us to standardize logs between services as requested in the API Design document
Type
Checklist:
A new PR with the test suite will follow really soon