You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turns out, http.createServer was returning a mock object which had no method .on (which was required by stoppable, otherwise it would have failed a few lines later). That was a side effect of my test calling:
Which, it turns out, I didn't need. So I deleted that and my tests were fine. But adding a mock for oAuth shouldn't break Miniflare, should it? So maybe there's a better way to do that?
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered:
I think in general we should not need to use this mock handler. It should only be needed for specific login flow tests.
I think we can probably go and remove its use from all the D1 tests.
Which Cloudflare product(s) does this pertain to?
Wrangler core, Miniflare
What version(s) of the tool(s) are you using?
3.60.3
What version of Node are you using?
20.10.0
What operating system and version are you using?
Mac 14.5
Describe the Bug
In testing #6073, I had test failures for this production code:
The error was:
I jumped into Miniflare to figure out which line was breaking, it was this invocation:
Turns out,
http.createServer
was returning a mock object which had no method.on
(which was required bystoppable
, otherwise it would have failed a few lines later). That was a side effect of my test calling:Which, it turns out, I didn't need. So I deleted that and my tests were fine. But adding a mock for oAuth shouldn't break Miniflare, should it? So maybe there's a better way to do that?
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: