- Step 1: Install packages through 'npm install'
- Step 2: Move into the 'App.test.tsx' in './src/App.test.tsx'
- Step 3: There is one test case which showcases the issue of redux store persistence after calling "rerender"
- Step 4: Run 'npm test' to run test case
- The file inside of './utils/test-utils.tsx' provides a custom "render" wrapper function to handle redux state and modify "rerender" to handle redux store as well
Uses Vite, Vitest, and React Testing Library to create a modern React app compatible with Create React App
npx degit reduxjs/redux-templates/packages/vite-template-redux my-app
- Easy migration from Create React App or Vite
- As beginner friendly as Create React App
- Optimized performance compared to Create React App
- Customizable without ejecting
dev
/start
- start dev server and open browserbuild
- build for productionpreview
- locally preview production buildtest
- launch test runner