test

test is a command for Claude Code from PMDevSolutions/Aurelius. It costs 0 tokens per session (408 once invoked), scanned A, original, MIT.

A command for running a project's Vitest test suite, with optional coverage reporting. Vitest is a JavaScript and TypeScript test runner; coverage shows which code tests exercise.

In plain words
What is it for?
Use it for unit tests, React component and hook tests, matching a test name, watch mode, and documented end-to-end test patterns.
Why use it?
It gives a repeatable way to run all tests, investigate failures, test selected cases, or check coverage instead of running commands by hand.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is ./scripts/run-tests.sh.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test

README.md
[![agentmods](https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/test.svg)](https://agentmods.dev/commands/pmdevsolutions/aurelius/test)
Your own site
<a href="https://agentmods.dev/commands/pmdevsolutions/aurelius/test"><img src="https://agentmods.dev/badge/commands/pmdevsolutions/aurelius/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00408
Opus 5 $0.00000 $0.00204
Sonnet 5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

Measured yesterday against content hash 852b7125a5e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/test.md · 70 lines

What it actually says

Test Runner

Run Vitest tests with coverage reporting.

Purpose

This command runs the project's test suite using Vitest and React Testing Library.

Usage

/test

What this command does

  1. Detects test configuration (vitest.config.ts or vite.config.ts)
  2. Runs all tests with proper configuration
  3. Shows coverage report if configured
  4. Reports failures with clear error details

Steps

1. Run all tests

pnpm vitest run

2. Run with coverage

pnpm vitest run --coverage

3. Run specific test file

pnpm vitest run src/components/Button.test.tsx

4. Run in watch mode (interactive development)

pnpm vitest

5. Run tests matching a pattern

pnpm vitest run -t "should render"

Or use the project script

./scripts/run-tests.sh

Test Types

Type Tool Pattern Purpose
Unit Vitest *.test.ts Pure functions, utilities
Component Vitest + RTL *.test.tsx React component behavior
Hook Vitest + RTL *.test.ts Custom hook logic
E2E Playwright *.spec.ts Full user flows
Visual Storybook *.stories.tsx Component states

Common Issues

  • Missing setup file: Create src/test/setup.ts with import '@testing-library/jest-dom'
  • JSX not recognized: Ensure environment: 'jsdom' in vitest config
  • Module resolution: Check resolve.alias matches tsconfig paths
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 70 lines · 0 tokens per session scan A 852b7125a5e9

Subscribe to this mod's changes

test is a command published in the GitHub repository PMDevSolutions/Aurelius (8 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 408 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.