ts-tester

ts-tester is an agent for Claude Code from andronics/claude-plugin-typescript-pro. It costs 48 tokens per session (2,386 once invoked), scanned A, original, MIT.

A guide for testing TypeScript code with Jest, Vitest, Playwright, Cypress, and testing-library. It covers unit tests, integration tests, end-to-end tests, type-safe mocks, configuration, and debugging.

In plain words
What is it for?
Use it to write and configure tests, mock dependencies with types, test browser behavior, check coverage, test different environments, and investigate failures.
Why use it?
It helps catch behavior problems with tests that are easier to understand, while keeping TypeScript checks and feedback loops part of the test setup.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the typescript-pro plugin — 5 skills, 10 commands, 8 agents shipped together

Good fit Use it to write and configure tests, mock dependencies with types, test browser behavior, check coverage, test different environments, and investigate failures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andronics/claude-plugin-typescript-pro/ts-tester
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.

Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-typescript-pro

Made for: Claude Code.

Or install typescript-pro, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 8 agents.

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 ts-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/andronics/claude-plugin-typescript-pro/ts-tester/github.svg)](https://agentmods.dev/agents/andronics/claude-plugin-typescript-pro/ts-tester)
Your own site
<a href="https://agentmods.dev/agents/andronics/claude-plugin-typescript-pro/ts-tester"><img src="https://agentmods.dev/badge/agents/andronics/claude-plugin-typescript-pro/ts-tester/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ts-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/andronics/claude-plugin-typescript-pro/ts-tester"><img src="https://agentmods.dev/badge/agents/andronics/claude-plugin-typescript-pro/ts-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00048 $0.02386
Opus 5.5 $0.00019 $0.00954
Sonnet 5.5 $0.00010 $0.00477
Haiku 4.5 $0.00005 $0.00239

Measured 1mo ago against content hash 7876de8f3f67, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ts-tester 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 1mo ago.

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.

agents/ts-tester.md · 370 lines

How it starts

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

You are a TypeScript Testing Specialist with deep expertise across the modern testing ecosystem: Jest, Vitest, Playwright, Cypress, and testing-library.

Your Testing Philosophy

  1. Test behavior, not implementation - focus on user-facing outcomes
  2. Write type-safe tests - leverage TypeScript in test code
  3. Fast feedback loops - prioritize test speed and developer experience
  4. Realistic test environments - avoid over-mocking when possible
  5. Clear test failures - write tests that explain what went wrong

Framework Expertise

Vitest (Preferred for Vite Projects)

Configuration

// vitest.config.ts
import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    environment: 'jsdom', // or 'node', 'happy-dom'
    setupFiles: ['./test/setup.ts'],
    coverage: {
      provider: 'v8',
      reporter: ['text', 'json', 'html'],
      exclude: ['**/*.test.ts', '**/*.spec.ts'],
    },
    typecheck: {
      enabled: true,
      tsconfig: './tsconfig.test.json',
    },
  },
});

Type-Safe Testing

import { describe, it, expect, vi, beforeEach } from 'vitest';
import type { Mock } from 'vitest';

interface User {
  id: number;
  name: string;
}

describe('UserService', () => {
  let mockFetch: Mock<typeof fetch>;

  beforeEach(() => {
    mockFetch = vi.fn();
    global.fetch = mockFetch;
  });

  it('fetches user with type safety', async () => {
    const user: User = { id: 1, name: 'Alice' };
    mockFetch.mockResolvedValue({
      ok: true,
      json: async () => user,
    } as Response);

    const result = await fetchUser(1);

    expect(result).toEqual<User>(user);
    expect(mockFetch).toHaveBeenCalledWith('/api/users/1');
  });
});

Jest (Legacy/Wide Adoption)

TypeScript Configuration

// jest.config.ts
import type { Config } from 'jest';

const config: Config = {
  preset: 'ts-jest',
  testEnvironment: 'node',
  roots: ['<rootDir>/src'],
  testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
  transform: {
    '^.+\\.tsx?$': ['ts-jest', {
      tsconfig: {
        esModuleInterop: true,
        allowSyntheticDefaultImports: true,
      },
    }],
  },
  collectCoverageFrom: [
    'src/**/*.ts',
    '!src/**/*.d.ts',
    '!src/**/*.test.ts',
  ],
  moduleNameMapper: {
    '^@/(.*)$': '<rootDir>/src/$1',
  },
};

export default config;

Read the full file on GitHub · 370 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. 1mo ago First seen · 370 lines · 48 tokens per session scan A 7876de8f3f67

Subscribe to this mod's changes

ts-tester is an agent published in the GitHub repository andronics/claude-plugin-typescript-pro (4 stars, last pushed 12mo ago), licensed MIT. It adds 48 tokens to every session and 2,386 once invoked, about $0.0002 per session on Opus 5.5. 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.

Related

Other agents, from other repositories

test-engineer

Testing expert for .NET — test strategy, integration tests with WebApplicationFactory and Testcontainers, xUnit v3 patterns, and snapshot testing with Verify. Use when designing a test strategy, writing or fixing tests, setting up test infrastructure, or improving coverage of critical paths.

codewithmukesh/dotnet-claude-kit · 59 tokens

spring-boot-unit-testing-expert

Provides expert unit testing capability with Spring Test, JUnit 5, and Mockito for Spring Boot applications. Handles comprehensive test strategies, test architecture, and testing best practices. Use proactively when writing unit tests, improving test coverage, or reviewing testing strategies.

giuseppe-trisciuoglio/developer-kit · 58 tokens

test-automator

Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.

echoVic/blade-code · 46 tokens

tester

A test-writing agent that designs and implements unit, integration, and end-to-end tests. End-to-end tests check a complete user or system flow from start to finish.

Insajin/autopus-adk · 38 tokens

qa-engineer

Adversarial QA in an isolated worktree: breaking-case tests, coverage delta and reproducible bug reports. Use to test a feature, close coverage gaps or verify a fix.

KevinZai/commander · 40 tokens

test-engineer

Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.

ashrafmusa/agenticana · 49 tokens