Test Skill

SkillDev tools

Run tests for Terrae components

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Test Skill skill

What this skill tells your AI

The instructions your AI receives, as published by alamenai/terrae in .claude/skills/test/SKILL.md and read by ahel’s review.

Run tests for Terrae components.

Instructions

  1. Run All Tests

    npm run test:run
    

    This runs vitest in single-run mode.

  2. Run Tests in Watch Mode If the user wants to develop with live feedback:

    npm run test
    

    Note: This runs in watch mode and won't exit automatically.

  3. Run Specific Tests To run tests for a specific component:

    npx vitest run {component-name}
    

    Example: npx vitest run marker

  4. Report Results

    • Show passing/failing test counts
    • For failures, show:
      • Test name
      • Expected vs received values
      • File and line number
  5. Handle Failures If tests fail:

    • Analyze the failure reason
    • Ask if the user wants help fixing the test or the code
    • Show the relevant test file and component code
  6. Test File Location Tests are typically located at:

    • src/registry/map/__tests__/{component}.test.tsx
    • Or alongside components: {component}.test.tsx

Signals

GitHub stars
244
Forks
5
Last commit
Apr 2026
Advanced
Catalog kind
skill
Gateway key
test-alamenai
Source
github.com/alamenai/terrae