- course about tests using jest
- Curso de Testes usando Jest
- Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
- It works with projects using: Babel, TypeScript, Node, React, Angular, Vue and more!
- Jest é um poderoso Framework de Testes em JavaScript com um foco na simplicidade.
- Funciona com projetos usando: Babel, TypeScript, Node, React, Angular, Vue e muito mais!
-
Before we start, we need to prepare the environment.
-
First, we need NodeJS and an IDE installed.
-
You can download NodeJS here NodeJS
-
Hint: download the "LTS" version. Its stable and recommended.
-
Open Node and type
npm install -g jestto run jest via the command line. -
Now, you can download an IDE as you prefer.
-
I use VsCode from microsoft.
-
You can download VsCode here: VsCode
-
Make a new folder to use it.
-
put the following commands:
-
npm init -y -
npm install --save-dev jest -
Finaly, Let's beginning.
-
Go to Jest
-
Follow the instructions.
-
Antes de começarmos, precisamos preparar o ambiente.
-
Primeiro, precisamos do NodeJS e de um IDE instalados.
-
Você pode baixar o NodeJS aqui NodeJS
-
Dica: baixe a versão "LTS". É estável e recomendado.
-
Abra o Node e digite
npm install -g jestpara rodar o jest por linha de comando. -
instalar o "node-notifier"
npm install --save-dev node-notifier -
Agora você pode baixar um IDE como preferir.
-
Eu uso o VsCode da Microsoft.
-
Você pode baixar o VsCode aqui: VsCode
-
Crie um diretório para ser utilizado.
-
nele digite os comandos:
-
npm init -y -
npm install --save-dev jest -
Finalmente, vamos começar.
-
Vá para Jest
-
Siga as instruções.
npm test