test-frontend-units

Installation
SKILL.md

Test Frontend Units Skill

Use this skill to run unit tests for React components to validate that features are properly tested and components function as expected.

What This Skill Does

  1. Runs npm test -- --run from the src/client/ui directory
  2. Executes Vitest test suite including:
    • src/components/CreateSurvey.test.tsx (15 tests - survey creation form)
    • src/components/GetSurvey.test.tsx (17 tests - survey fetching and display)
    • src/components/MySurveys.test.tsx (18 tests - user surveys listing)
  3. Tests run in jsdom environment simulating browser APIs
  4. Includes Auth0 authentication mocking and testing utilities
  5. Collects test results including:
    • Total tests run, passed, failed, skipped
    • Failed test names and error details
    • Test execution time per file
  6. Reports failures with specific test names and assertion errors
  7. Exits with failure status if any tests fail
Related skills

More from marcelmichau/fake-survey-generator

Installs
24
GitHub Stars
86
First Seen
Jan 24, 2026