Replies: 2 comments
-
Yeah I've wanted to do this when mocking one Ideally I'd love a way to instantiate a request from some express request class or something like that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's a router handle function, but that doesn't actually use any
middleware, just routes?
…On Sat, Jun 25, 2022 at 9:43 PM Mark ***@***.***> wrote:
Yeah I've wanted to do this when mocking one
-off requests when testing middleware functions. I'm not sure if there is
a way to do it though. So I just make an object literal shaped like an
express request and then use that.
—
Reply to this email directly, view it on GitHub
<#4940 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWP5AL3UQS2L6ZJLIXOW4DVQ4SKJANCNFSM5Z2NSCSQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to experiment with express in workers using pollyfills. They don't have a port, and don't run constantly on server side. How do you manually pass in request into express?
Beta Was this translation helpful? Give feedback.
All reactions