Back to skills
SkillHub ClubShip Full StackFull StackFrontendTesting

ui-test

Run TypeScript UI tests with Vitest and summarize results. Shows failures and coverage stats. Use when testing UI code in src/ui, validating TypeScript changes, or debugging test failures.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
1
Hot score
77
Updated
March 20, 2026
Overall rating
C1.0
Composite score
1.0
Best-practice grade
S96.0

Install command

npx @skill-hub/cli install joshcanfield-bic-scoreboard-ui-test-runner

Repository

joshcanfield/bic-scoreboard

Skill path: .claude/skills/ui-test-runner

Run TypeScript UI tests with Vitest and summarize results. Shows failures and coverage stats. Use when testing UI code in src/ui, validating TypeScript changes, or debugging test failures.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack, Frontend, Testing.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: joshcanfield.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install ui-test into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/joshcanfield/bic-scoreboard before adding ui-test to shared team environments
  • Use ui-test for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: ui-test
description: Run TypeScript UI tests with Vitest and summarize results. Shows failures and coverage stats. Use when testing UI code in src/ui, validating TypeScript changes, or debugging test failures.
allowed-tools: Bash(npm run test:*), Bash(cd:*), Bash(npm:*), Bash(python:*), Bash(cat:*)
---

# UI Test Runner

Run TypeScript UI tests using Vitest and return a concise summary.

## Context Reduction Strategy

**IMPORTANT**: To minimize context usage, use one of these approaches:

### Option 1: Use Task Agent (Recommended for Large Output)

Use the Task tool with `subagent_type=Explore` to run tests in a separate context:

```
Task: Run UI tests in src/ui with npm run test and summarize results. Report only:
- Total test files, tests, passed, failed counts
- Each failure with file:test name and assertion (max 5 lines each)
- Duration
- Do NOT include passing tests or full DOM snapshots
```

### Option 2: Pipe Through Parse Script

Run tests and pipe through the parsing script:

```bash
cd src/ui && npm run test 2>&1 | python ../scripts/parse-test-output.py --vitest
```

### Option 3: Direct Run with Manual Summary

Run tests, then summarize the key information:

```bash
cd src/ui && npm run test
```

## Commands

**Run all UI tests:**
```bash
cd src/ui && npm run test
```

**Run specific test file:**
```bash
cd src/ui && npm run test -- src/view/penalties.test.ts
```

**Run with parsed output:**
```bash
cd src/ui && npm run test 2>&1 | python ../scripts/parse-test-output.py --vitest
```

## Output Guidelines

**DO NOT** include in response:
- Each passing test name and checkmark
- Full DOM/component snapshots
- Vite compilation progress
- Complete expected vs actual diffs (truncate to key differences)

**DO** include in response:
- Overall status (PASS/FAIL)
- Test counts: suites, tests, passed, failed
- Duration
- Each failure with:
  - File and test name
  - Brief assertion message
  - Key expected vs actual difference