Backend real
Nivel 26: Tests con Vitest
Estimado35 minBloqueadoAsí debería verse tu web al finalizar este nivel
npm test pasa en local.
Objetivo
Instala Vitest, crea vitest.config.js y un test que renderice ProjectCard.
En este nivel aprenderás
Introduces tests automatizados con Vitest y Testing Library: renderizar ProjectCard y comprobar que el texto aparece. Aprenderás por qué los tests dan confianza al refactorizar y cómo ejecutarlos con npm test.