Skip to content

alamenai/terrae / .claude/skills/test

Run tests for Terrae components

FileKindSize
SKILL.mdskill md1.2 KB
---
name: test
description: Run tests for Terrae components
argument-hint: [component-name]
allowed-tools: Bash(npm run test*), Bash(npx vitest *)
---

# Test Skill

Run tests for Terrae components.

## Instructions

1. **Run All Tests**

   ```bash
   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:

   ```bash
   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:

   ```bash
   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`
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall