frontend-typescript-testing

frontend-typescript-testing is a skill for Claude Code from shinpr/ai-coding-project-boilerplate. It costs 56 tokens per session (1,245 once invoked), scanned A, original, MIT.

A set of rules for writing tests for React and other TypeScript front ends, using the testing tools already configured in a project. It covers component tests, API-related tests, and browser-based end-to-end tests when those tools are available.

In plain words
What is it for?
Use it when adding or reviewing tests for React components, mocked API responses, user interactions, integrations, or complete front-end flows in a browser.
Why use it?
It prevents test code from assuming the wrong framework or command. It also helps check loading, error, interaction, integration, and full browser behavior consistently.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when adding or reviewing tests for React components, mocked API responses, user interactions, integrations, or complete front-end flows in a browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing
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.

Any agent
npx skills add shinpr/ai-coding-project-boilerplate --skill frontend-typescript-testing
Clone the repo
git clone --depth 1 https://github.com/shinpr/ai-coding-project-boilerplate

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 frontend-typescript-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing/github.svg)](https://agentmods.dev/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing)
Your own site
<a href="https://agentmods.dev/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing"><img src="https://agentmods.dev/badge/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing/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 frontend-typescript-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing"><img src="https://agentmods.dev/badge/skills/shinpr/ai-coding-project-boilerplate/frontend-typescript-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,245 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00056 $0.01245
Opus 5.5 $0.00022 $0.00498
Sonnet 5.5 $0.00011 $0.00249
Haiku 4.5 $0.00006 $0.00125

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

Security

Grade A, and why

frontend-typescript-testing 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 10d 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.

.claude/skills-en/frontend-typescript-testing/SKILL.md · 83 lines

How it starts

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

TypeScript Testing Rules (Frontend)

Prerequisite Detection

Inspect package.json, the lockfile, test configuration, and existing test imports before selecting a framework or command. Apply Vitest, React Testing Library, MSW, or Playwright rules only when the dependency/configuration is present. Use the repository's configured equivalent when different. If no runnable harness can be identified, report the inspected paths and the missing framework or command instead of inventing one.

References

Test Type Reference When to Use
Unit / Integration This document Implementing React component tests with RTL + Vitest + MSW
E2E references/e2e.md Implementing browser-level E2E tests with Playwright

Test Framework

  • Vitest: Use when the repository config or existing tests select Vitest
  • React Testing Library: For component testing
  • MSW (Mock Service Worker): For API mocking
  • Test imports: import { describe, it, expect, beforeEach, vi } from 'vitest'
  • Component test imports: import { render, screen } from '@testing-library/react'
  • User interaction: import userEvent from '@testing-library/user-event'
  • Mock creation: Use vi.mock()

Basic Testing Policy

Quality Requirements

  • Regression protection: assert the named acceptance result, public branch, or failure state on critical paths and high-reuse components
  • Independence: Each test passes in isolation, in any order, and alongside the tests the runner executes concurrently with it
  • Reproducibility: Control time, randomness, environment values, network responses, browser state, and the order of concurrent work so identical inputs produce the same observable result
  • Readability: Each test names one user-visible behavior, separates setup/action/assertion, and keeps fixtures limited to values used by that behavior

Where to concentrate test rigor

For shared components, custom hooks, and utilities reused across features, cover their public branches, error states, and boundary contracts because their regression blast radius is wider. Verify page-level composition through integration/E2E tests when the behavior depends on multiple rendered units.

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago Changed be55fb17c2b1
  2. 1mo ago Changed cf9cb07f942e
  3. 1mo ago Changed · -1 lines 7c4ad64ba129
  4. 2mo ago Changed · -1 lines d6809815acbb
  5. 3mo ago First seen · 85 lines · 56 tokens per session scan A 2551dafb6049

Subscribe to this mod's changes

frontend-typescript-testing is a skill published in the GitHub repository shinpr/ai-coding-project-boilerplate (239 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 1,245 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-30.

Related

frontend-typescript-testing compared with skills from other repositories

frontend-typescript-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-typescript-testingshinpr/ai-coding-project-boilerplateSkill2395d agoMITA56Claude Code
tuturuuu-cli-resourcestutur3u/platformSkill56todayApache-2.0A26Codex
V3 CLI Modernizationruvnet/rufloSkill83kyesterdayMITA35Claude Code
spec-harness-ticketschohra-med/expo_boilerplateSkill362mo agoMITA82Claude Code
chroniclemicrosoft/vscodeSkill195ktodayMITA72Claude Code, Codex
generate-run-commandsmicrosoft/vscodeSkill195ktodayMITA36Claude Code, Codex
agentmailpaperclipai/paperclipSkill120ktodayMITA30Claude Code, Codex