Back to Skills

backend-test

alekspetrov
Updated 3 days ago
22 views
47
3
47
View on GitHub
Metatesting

About

The backend-test skill automatically triggers when developers mention testing phrases like "write test for" or "add test." It generates comprehensive backend test files using Jest/Vitest, including fixtures, mocks, and coverage for both happy paths and error cases. This ensures tests are properly structured, isolated, and immediately runnable.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/alekspetrov/navigator
Git CloneAlternative
git clone https://github.com/alekspetrov/navigator.git ~/.claude/skills/backend-test

Copy and paste this command in Claude Code to install this skill

Documentation

Backend Test Generator

Generate comprehensive backend tests with Jest/Vitest including fixtures and mocks.

When to Invoke

Auto-invoke when user mentions:

  • "Write test for"
  • "Add test"
  • "Test this"
  • "Create test"
  • "Test [component/function]"

What This Does

  1. Generates test file with describe/it blocks
  2. Creates test fixtures
  3. Generates mocks for dependencies
  4. Includes edge cases
  5. Follows testing best practices

Success Criteria

  • Test file generated with proper structure
  • Tests cover happy path and error cases
  • Mocks isolate unit under test
  • Fixtures provide test data
  • Tests are runnable and pass

Auto-invoke when writing backend tests 🧪

GitHub Repository

alekspetrov/navigator
Path: skills/backend-test

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

webapp-testing

Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill

finishing-a-development-branch

Testing

This skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.

View skill