Open tyler-goodwin opened 8 months ago
This seems to be because we parse Miniflare's config before starting up Miniflare, and then pass that parsed config to Miniflare when starting up the test runner. I don't think that's necessarily correct—as this issue shows the config is not necessarily roundtripable. I suspect we should either:
transform()
calls in Miniflare's config, to make it roundtripable
I think the first option is probably the best, but it will require some investigation to see why we were parsing the config outside of Miniflare in the first place.
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What version(s) of the tool(s) are you using?
0.1.12
What version of Node are you using?
20.11.0
What operating system and version are you using?
macOS Sonoma 14.4.1
Describe the Bug
Observed behavior
Incorrectly reporting conflicting miniflare errors
Config:
Expected behavior
No error when trying to run tests
Steps to reproduce
Please see reproduction repo
Please provide a link to a minimal reproduction
https://github.com/tyler-goodwin/miniflare-fetch-mock-repro
Please provide any relevant error logs