-
Notifications
You must be signed in to change notification settings - Fork 286
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 bun test example #236
base: main
Are you sure you want to change the base?
fix bun test example #236
Conversation
@@ -59,6 +59,7 @@ export default app // [!code --] | |||
export default { // [!code ++] | |||
port: 3000, // [!code ++] | |||
fetch: app.fetch, // [!code ++] | |||
request: app.request, // [!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 is not necessary.
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.
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 assume the following case where the port number is not changed.
const app = new Hono()
// ...
export default app
The exported application contains the request
property.
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.
Yes, I understand that if "app" is exported, it has a request property. This proposal is to use "app.request" when "app" is not exported with port change. If you don't need that, then so be it. Thank you.
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.
Thank you for understanding. I want to keep it simple here, so can you please remove that line?
Thanks. I've commented. Check it. |
In the test when using bun, make the request method the same as the non-bun case.