Starting Remix server programmatically #5379
Unanswered
frontsideair
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I wrote how to do it here https://sergiodxa.com/articles/e2e-test-remix-with-vitest-and-puppeteer, in my case I used |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm trying a new testing strategy and looking for some help. I was starting a docker-compose process in CI and testing using Playwright, but this proved to be error prone and not good for testing overall. I'm seeking a different pattern now.
What I'm trying to do is to start a Remix server with mocks in place of database, SMTP server, etc. I can then visit the page using Playwright and check if my mocks were called the right way. Here's a sample test to illustrate this point:
I like this because then tests can be fast, they can run in parallel, I can start the test in whatever state that I want it in, etc.
How do I implement
createApp
? I have tried a few different approaches but none seem to work so far. I'm also using the Vercel adapter, which might be complicating things.Beta Was this translation helpful? Give feedback.
All reactions