This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
This project uses Vitest as the test runner along with React Testing Library to test React components in a way that closely resembles user interactions.
npm run test
yarn test- Tests are written using Vitest, which provides a fast and easy-to-use testing environment.
- React components are tested using React Testing Library, focusing on testing components from the user’s perspective.
- Mocking utilities like
vi.mock(Vitest’s equivalent of Jest mocks) are used for mocking functions and modules.
