npm install --save-dev vitest jsdom- React Testing Library
npm install --save-dev @testing-library/react @testing-library/dom- Todo en un sólo comando
npm install --save-dev @testing-library/react @testing-library/dom vitest jsdom- Crear estos scripts en el
package.json
"scripts": {
"test": "vitest",
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage"
}