Expose createRemixRequest for testing #2372
Locked
andresgutgon
started this conversation in
General
Replies: 2 comments
-
What I like about this approach is that it's a test agains a real remix request + express server. Feels really nice |
Beta Was this translation helpful? Give feedback.
0 replies
-
Going to close this in favor of #2481 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Expose createRemixRequest
Hi, I'm working on some node code that interacts with Remix request. Maybe is not the right approach but I managed to do tests with supertest + express +
createRemixRequest
So the idea is to be able to test
myThing
which expects a Remix request like this:myThing
has to be fully compliant with a remix request. So I did this in my tests. I created a Express server where I use my thing:The spec looks like this:
The problem
One issue with this approach is that
createRemixRequest
it's not exported.I was wondering 2 things here:
createRemixRequest
to use it in cases like this?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions