Skip to content
Back to skills

Test

ASecurity

Run tests for Terrae components

  • 244 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
developmentbash

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add alamenai/terrae --skill test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alamenai-test/badge)](https://www.skillsdirectory.com/skills/alamenai-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.