
Add unit testing support to a React project using Vite and Typescript
If you want to test your components in a React + Vite project, the best way is using React Testing Library. This allows you to render your component with different props, interact with it and do assertions on the final output. To get it set up, you first need to install ...