integrate-test-matcher

A guided command for adding a test matcher from @tevm/test-matchers to the @tevm/actions test suite. A test matcher is a custom check used in automated tests.

In plain words
What is it for?
Use it to inspect exported matchers, read their documentation, choose one, and integrate it into tests for the actions package.
Why use it?
It helps developers discover available matchers and understand their documented behavior before selecting one for integration.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/evmts/tevm/integrate-test-matcher
Clone the repo
git clone --depth 1 https://github.com/evmts/tevm

Made for: Claude Code.

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 2,102 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 $0.00000 $0.02102
Opus 5 $0.00000 $0.01051
Sonnet 5 $0.00000 $0.00420
Haiku 4.5 $0.00000 $0.00210

Measured yesterday against content hash 4191d550bb0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

integrate-test-matcher 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/integrate-test-matcher.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Command: Integrate Test Matcher

This command initiates an interactive workflow to integrate a new or existing test matcher from @tevm/test-matchers into the @tevm/actions package's test suite.

Usage

To start the integration process, type:

/integrate-test-matcher

The Workflow

This command operates in three stages.

Stage 1: Discover and Select

First, I will analyze the @tevm/test-matchers package to identify all available matchers and their capabilities. I will then present you with a list.

AI Action:

  1. Read the directory structure of extensions/test-matchers/src/matchers/.
  2. For each category, parse the index.ts file to find exported matchers.
  3. Read the JSDoc comments for each matcher to create a summary.
  4. Present the list of matchers to the user.

(Example Interaction)

AI presents the list:

Here are the available matchers from @tevm/test-matchers:

  • Value Matchers:
    • toBeAddress(opts?): Asserts a value is a valid Ethereum address.
    • toBeHex(opts?): Asserts a value is a valid hex string.
    • toEqualAddress(expected): Compares two addresses for case-insensitive equality.
    • toEqualHex(expected, opts?): Compares two hex strings with normalization.
  • Event Matchers:
    • toEmit(contract, eventName): Asserts an event was emitted.
      • Chainable with: .withEventArgs(...), .withEventNamedArgs(...)
  • Error Matchers:
    • toBeReverted(client?): Asserts a transaction reverted for any reason.
    • toBeRevertedWithString(client, message): Asserts a revert with a specific string message.
    • toBeRevertedWithError(client, contract, errorName): Asserts a revert with a specific custom error.
      • Chainable with: .withErrorArgs(...), .withErrorNamedArgs(...)

Please specify which matcher (and its chainable companions) you would like to integrate into the @tevm/actions test files.


User responds, e.g., "Please integrate toBeRevertedWithError and withErrorNamedArgs."

Read the full file on GitHub · 222 lines

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 · 222 lines · 0 tokens per session scan A 4191d550bb0c

Subscribe to this mod's changes

integrate-test-matcher is a command published in the GitHub repository evmts/tevm (446 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,102 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-08-31.