Skip to content

Using Cypress with Vite, React, TypeScript, MSW and react-query

Notifications You must be signed in to change notification settings

robcaldecott/cypress-vite

Repository files navigation

Vite + Cypress + MSW + react-query Demo

Example of using Cypress with Vite, MSW and react-query. Uses the appReady pattern to signal to Cypress when the MSW server has started.

https://docs.cypress.io/api/commands/window#Start-tests-when-app-is-ready

First install the packages:

npm install

Then start the app:

npm run dev

Then open another console window and start Cypress:

npx cypress open

or

npx cypress run

About

Using Cypress with Vite, React, TypeScript, MSW and react-query

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published