Replies: 2 comments
-
useFetcher , useSubmit , useSearchParams , etc. The createRemixStub function will help you simulate the component is rendered inside Remix and let you provider loaders and actions to test interacting with the component works.
If you only want to test loaders and actions, it's way simpler to just call them like normal functions, you don't need to mock a UI to test them. |
Beta Was this translation helpful? Give feedback.
-
Thank you Sergio... End-to-End testing: Using Cypress on Playwright on mocked DB Can I do better that this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I've just fell in love with remix.run and its documentation is clear. But on thing is quite blurry, and that is testing.
So what to test in remix.run app?
How to test loader and actions? Like this: https://sergiodxa.com/articles/test-remix-loaders-and-actions
Or using
createRemixStub()
?jest or vitetest
Beta Was this translation helpful? Give feedback.
All reactions