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
- Host: GitHub
- URL: https://github.com/tiagoviniciusdev/jest
- Owner: TiagoViniciusDev
- Created: 2025-01-11T22:25:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T22:47:22.000Z (about 1 year ago)
- Last Synced: 2025-03-02T09:14:30.259Z (about 1 year ago)
- Topics: jest, react, react-testing-library, reactts, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```