-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot figure out how to use MOCK_ENV #213
Comments
Try: app.request('/env', MOCK_ENV) |
I get "Type When I run
|
@nawok Sorry.
|
Hi @yusukebe! |
We should have this function as is. The
Yeah! We should add a description in the docs. |
Hello everyone!
I honestly tried multiple approaches and read the docs several times. I searched other Hono repositories and saw a working example for Cloudflare Workers and they use MOCK_ENV exactly how I want to use it.
The only difference is the original source of environment variables. My suspicion is that
MOCK_ENV
cannot “win over” Bun‘s.env
. I created a minimal reproduction with tests. Could someone please have a look?Thank you all in advance!
The text was updated successfully, but these errors were encountered: