typescript-testing

Installation
SKILL.md

TypeScript Testing Rules (Frontend)

Test Framework

  • Vitest: This project uses Vitest
  • React Testing Library: For component testing
  • MSW (Mock Service Worker): For API mocking
  • Test imports: import { describe, it, expect, beforeEach, vi } from 'vitest'
  • Component test imports: import { render, screen, fireEvent } from '@testing-library/react'
  • Mock creation: Use vi.mock()

Basic Testing Policy

Quality Requirements

  • Coverage: Unit test coverage must be 60% or higher (Frontend standard 2025)
  • Independence: Each test can run independently without depending on other tests
  • Reproducibility: Tests are environment-independent and always return the same results
  • Readability: Test code maintains the same quality as production code
Related skills
Installs
14
GitHub Stars
350
First Seen
Jan 24, 2026