Skip to content

Commit 4f70847

Browse files
committed
Zaktualizuj README.md o informacje o testach jednostkowych
- Dodaj Vitest do listy technologii - Rozszerz sekcję testów o polecenia npm run test - Dodaj opis testów jednostkowych i ich zakres - Zaktualizuj strukturę projektu o katalog test/
1 parent 4166593 commit 4f70847

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Nowoczesna aplikacja do zarządzania zadaniami zbudowana w React z TypeScript, w
3434
- **Backend:** Supabase (PostgreSQL + Auth + Edge Functions)
3535
- **Tabele:** TanStack Table v8
3636
- **Narzędzia:** ESLint, PostCSS, Autoprefixer
37+
- **Testowanie:** Vitest, @testing-library/react, jsdom
3738

3839
## 📦 Instalacja
3940

@@ -117,6 +118,7 @@ taskmanager/
117118
│ ├── context/ # React Context
118119
│ ├── lib/ # Biblioteki pomocnicze
119120
│ ├── store/ # Zustand stores
121+
│ ├── test/ # Konfiguracja testów
120122
│ ├── types/ # TypeScript typy
121123
│ └── ...
122124
├── supabase/
@@ -134,6 +136,21 @@ taskmanager/
134136

135137
## 🧪 Uruchamianie testów
136138

139+
### Testy jednostkowe (Vitest)
140+
```bash
141+
npm run test # Uruchom testy w trybie watch
142+
npm run test:run # Uruchom testy jednorazowo
143+
npm run test:ui # Uruchom testy z interfejsem graficznym
144+
```
145+
146+
### Testy obejmują:
147+
- **Komponenty layoutu:** Footer, Content
148+
- **Komponenty logowania i rejestracji:** Login, Register
149+
- **Komponenty zadań:** Settings (zakładki, przełączanie)
150+
- **Komponenty użytkowników:** Settings (zakładki, przełączanie)
151+
- **Komponenty pomocy i kontaktu:** Help, Contact
152+
153+
### Linting
137154
```bash
138155
npm run lint
139156
```

0 commit comments

Comments
 (0)