-
Notifications
You must be signed in to change notification settings - Fork 151
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
fix: building sonic boom safe #316
Conversation
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.
Missing tests.
.taprc
Outdated
@@ -1,4 +1,5 @@ | |||
ts: false | |||
check-coverage: false |
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.
Why?
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.
took it from pino, otherwise tests will fail if not reaches 100% coverage. https://github.com/pinojs/pino/blob/f8696ab5fb0e5a819b6255af420b29fb075cbdee/.taprc#L3
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.
Please add the istanbul ignores. Let's not lower the code coverage here.
lib/utils.js
Outdated
} | ||
return stream | ||
|
||
/* istanbul ignore next */ |
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.
Why are there so many istanbul directives in this new code?
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.
This code block comes from pino
as you can see here https://github.com/pinojs/pino/blob/f8696ab5fb0e5a819b6255af420b29fb075cbdee/lib/tools.js#L335-L373
I'm not sure if we need to cover this part as there is no unit test to cover it in pino.
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.
This code is covered by tests in pino. The istanbul ignores are there because on Node 12 we are lacking the WeakRef primitives that are needed for this feature.
.taprc
Outdated
@@ -1,4 +1,5 @@ | |||
ts: false | |||
check-coverage: false |
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.
Please add the istanbul ignores. Let's not lower the code coverage here.
Pull Request Test Coverage Report for Build 1995385865
💛 - Coveralls |
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.
lgtm
There are likely a few more lines to skip to satisfy the coverage requirements in Node v12: https://github.com/pinojs/pino-pretty/runs/5573573041?check_suite_focus=true. |
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.
Looks good to me.
Added the following block to build safe sonic boom.
Closes #304