test-writer

Generates and maintains unit and integration tests for the Raamattu Nyt monorepo using Vitest and React Testing Library.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/Spectaculous-Code/raamattu-nyt --skill test-writer-spectaculous-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/Spectaculous-Code/raamattu-nyt/tree/main/.claude/skills/test-writer
Command: npx skills add https://github.com/Spectaculous-Code/raamattu-nyt --skill test-writer-spectaculous-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, maintaining, and debugging tests within the Raamattu Nyt monorepo, ensuring code quality and stability.

Core Features & Use Cases

  • Test Generation: Create new tests for components, hooks, and utility functions using Vitest and React Testing Library.
  • Test Maintenance: Analyze existing tests, fix failures, and improve coverage.
  • Mocking: Generate mocks for dependencies like Supabase, authentication, and other services.
  • Use Case: After implementing a new authentication hook, use this Skill to automatically generate a comprehensive suite of unit tests covering various authentication states and scenarios.

Quick Start

Use the test-writer skill to write tests for the useAuth hook.

Frequently Asked Questions about test-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Vitest tests for React components in a monorepo?

To generate Vitest tests for React components in a monorepo, this Skill creates unit and integration tests using React Testing Library, supporting app-specific and package-specific configurations to ensure accurate coverage across the workspace.

How do I mock Supabase and authentication dependencies in Vitest?

Mocking Supabase and authentication dependencies in Vitest is handled by generating tailored mocks within the test suite, allowing components and hooks to be tested in isolation without requiring live backend services or actual auth states.

Can I analyze git commits to find missing test coverage?

Yes, you can analyze commits to find missing test coverage. This Skill evaluates recent changes in the monorepo to identify untested code paths and generates new Vitest tests to improve overall coverage for the modified files.

What is the best way to debug failing Vitest tests in a monorepo?

The best way to debug failing Vitest tests is to review the existing test outputs and component logic. This Skill analyzes test failures, identifies the root cause within the monorepo structure, and applies fixes to the test or implementation.

Does this approach work for testing custom hooks like useAuth?

Yes, this approach works for testing custom hooks like useAuth. It generates comprehensive unit tests using Vitest and React Testing Library to cover various authentication states and scenarios specific to the hook's logic.