An open API service indexing awesome lists of open source software.

https://github.com/tiagoviniciusdev/jest

Testes de alguns componentes básicos com Jest e React Testing Library
https://github.com/tiagoviniciusdev/jest

jest react react-testing-library reactts typescript vite

Last synced: 7 months ago
JSON representation

Testes de alguns componentes básicos com Jest e React Testing Library

Awesome Lists containing this project

README

          

### Informações

Este projeto é foi feito com vite e typescript usando as ferramentas ""Jest" e "React Testing Library" para realizar os testes.

### Inicializando projeto

Use o comando abaixo no terminal para que seja intalado todas as dependências necessárias

```bash
npm install
```

### Navegando pelos componentes
use o comando abaixo para inicializar o projeto e navegar pelos componentes
```bash
npm run dev
```

### Realizando os testes
Há três componentes simples, segue abaixo o código para testa-los

#### Test1.tsx

```bash
npx jest src/components/Test1/Test1.test.tsx
```

#### Test2.tsx

```bash
npx jest src/components/Test2/Test2.test.tsx
```

#### Test3.tsx

```bash
npx jest src/components/Test3/Test3.test.tsx
```