Testoviron is a collection of practical testing examples built with modern frontend libraries and tools.
It’s designed to demonstrate effective testing strategies for real-world React applications using various state management and validation solutions.
This repository includes examples for components, hooks, async operations, form validation, and state management – all test-driven with tools like Vitest, React Testing Library, and MSW.
- ✅ JSX – basic and advanced patterns
- ✅ Props and State handling
- ✅ Custom Hooks (with isolated testing)
- ✅ API Fetching (unit + mocked integration)
- ✅ MSW (Mock Service Worker)
- ✅ Context API (state logic and consumer testing)
- ✅ Zustand (store testing with edge cases)
- ✅ Supabase (mocked integration)
- ✅ Form testing – with React Hook Form and Zod
- ✅ Full CRUD testing flows
- ✅ Async testing patterns
| Tool / Tech | Purpose |
|---|---|
| UI Framework | |
| Type safety | |
| Build tool | |
| Styling | |
| IDE |
| Library / Tool | Role |
|---|---|
| Unit Testing | |
| UI Testing | |
| API Mocking | |
| Store Testing | |
| DB Integration | |
| UI Docs | |
| Form Handling | |
| Form Validation |
# 1. Install all dependencies
npm install
# 2. Run unit/integration tests (Vitest)
npm run test
# 3. Run e2e tests (if configured, e.g. Playwright)
npm run test-e2e- 🐙 GitHub: https://www.github.com/ktcotz
- 💼 LinkedIn: https://www.linkedin.com/in/naskret-kamil/
- 🌐 Portfolio: https://kamil-me.vercel.app/
- 📫 Email: naskret.kamil@gmail.com
