Skip to content

Cannot figure out how to use MOCK_ENV #213

@nawok

Description

@nawok

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions