Skip to content

A practical testing examples repository featuring MSW, Supabase, Zustand, Vitest, Playwright, and more.

Notifications You must be signed in to change notification settings

ktcotz/Testoviron

Repository files navigation

Testoviron – A playground for practical testing in modern React applications

🧪 Project Overview

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.


🔍 What’s Covered?

  • ✅ 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

🛠️ Tech Stack

Tool / Tech Purpose
React UI Framework
TypeScript Type safety
Vite Build tool
TailwindCSS Styling
Visual Studio Code IDE

📚 Libraries and Tools

Library / Tool Role
Vitest Unit Testing
Testing Library UI Testing
MSW API Mocking
Zustand Store Testing
Supabase DB Integration
Storybook UI Docs
React Hook Form Form Handling
Zod Form Validation

🚀 Getting Started

# 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

👨‍💻 Developer Info

About

A practical testing examples repository featuring MSW, Supabase, Zustand, Vitest, Playwright, and more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published