Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Baxone/jestmasterclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test unitarios con jest en Vanilla JS. MasterClass

Preparación para masterclass sobre test unitarios en vainilla js

Pre-requisitos 📋

Te recomiendo un editor de código, yo voy a usar VScode.

Dentro de VSCode un buen plugin para user Jest es Jest y Jest Runner para lanzar los test de forma facil.

Instalación 🔧

Tendrás que instalar jest para poder seguir este ejemplo.

npm install --save-dev jest

Ejecutando las pruebas ⚙️

Para ejecutar los test unitarios. Puedes crear un fichero package.json y configurar la codificación npm para lanzar el script

  {
    "scripts": {
      "test": "jest"
    }
  }

Una vez que tengas configurado el fichero package json puedes lanzar los test desde el terminal con el siguiente comando.

npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors