Integration Testing Remix Routes with Vitest

Fishermen near Santa Marta, Colombia with the Sierra Nevada mountains in the distance.

Photo by Richard Brunsveld on Unsplash

In this article we'll go through the necessary steps to setup the tooling around your remix App so you can run integration tests for your Route components, loaders and actions.

Disclaimer: When I first started writing this post, the official Remix as a Vite plugin hadn't been released. I haven't tried it myself but I imagine most of this setup is still relevant.

WIP