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: remove invalid assertion #3018
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.
I think this error is related to the changes in fastify/fastify-error@062c258.
I am +1 on removing this test case as you said FastifyError
itself is only the interface and can not be construable or called directly.
Can we change the test to expectType<ValidationResult[] | undefined>(FastifyError.validation)
to see if the error persist?
Agree.
Not sure if it's worth it since we are checking the interface types it doesn't sound redundant for you? |
Yes, it is. Let's wait for @Ethan-Arrowood response to see if this checking have any actual meanings. |
I'm sorry but the build is broken. I need this fixed asap. |
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 pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Ref #3017
I removed the assertion since it does not seem useful,
FastifyError
is an interface and in the test are being called as a function.@Ethan-Arrowood I'm asking review for you since you've implemented it a long time ago.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct