frontend-typescript-testing SKILL.md skillA

frontend-typescript-testing from shinpr/ai-coding-project-boilerplate is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shinpr/ai-coding-project-boilerplate/frontend-typescript-testing@git:20261014.f06813c

Pins git:20261014.f06813c in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shinpr/ai-coding-project-boilerplate
Path
.claude/skills-ja/frontend-typescript-testing/SKILL.md
Versions recorded
6
Latest version
git:20261014.f06813c, committed Oct 14, 2026
First version recorded
Aug 8, 2026
Size
7,349 bytes
Repository stars
234
License
MIT

リポジトリで設定済みのReactテスト・ブラウザハーネスを使用してフロントエンドテストを設計。RTL、MSW、Vitest、Playwrightが存在する場合に適用。コンポーネント、loading/error state、統合、フロントエンドE2Eテストの追加・レビュー時に使用。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# TypeScript テストルール(フロントエンド)

## 前提条件の検出

フレームワークやコマンドを選択する前に、`package.json`、ロックファイル、テスト設定、既存テストのimportを確認する。Vitest、React Testing Library、MSW、Playwright固有のルールは、依存または設定が存在する場合にのみ適用する。異なるフレームワークが設定されている場合は、リポジトリの同等機能を使用する。実行可能なハーネスを特定できない場合は、作り出さずに、確認したpathと不足しているフレームワークまたはコマンドを報告する。

## 参照

| テスト種別 | 参照先 | 用途 |
|-----------|--------|------|
| **ユニット / 統合** | 本ドキュメント | RTL + Vitest + MSW での React コンポーネントテスト |
| **E2E** | [references/e2e.md](references/e2e.md) | Playwright によるブラウザレベル E2E テスト |

## テストフレームワーク
- **Vitest**: リポジトリ設定または既存テストで選択されている場合に使用
- **React Testing Library**: コンポーネントテスト用
- **MSW (Mock Service Worker)**: APIモック用
- テストのインポート: `import { describe, it, expect, beforeEach, vi } from 'vitest'`
- コンポーネントテストのインポート: `import { render, screen } from '@testing-library/react'`
- ユーザー操作: `import userEvent from '@testing-library/user-event'`
- モックの作成: `vi.mock()` を使用

## テストの基本方針

### 品質要件
- **リグレッション保護**: クリティカルパスと再利用度の高いコンポーネントでは、明記された受け入れ結果、公開分岐、失敗状態を検証する
- **独立性**: 各テストは他のテストに依存せず実行可能
- **再現性**: 時刻、乱数、環境値、ネットワークレスポンス、ブラウザstateを制御し、同一の入力から同一の観測可能な結果を得る
- **可読性**: 各テストはユーザーから見える振る舞いを1つだけ名前で示し、setup・action・assertionを分け、その振る舞いで使用する値だけをfixtureに含める

### テストの重点配分
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shinpr/ai-coding-project-boilerplate/frontend-typescript-testing@sha256:2eca38d7b9442304

The line at the top of this page pins the label git:20261014.f06813c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6mlsn6qxiuiy7kix.svg)](https://markdownregistry.com/a/art_6mlsn6qxiuiy7kix)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between Aug 8, 2026 and Oct 14, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
git:20261014.f06813c latest2026-10-14 f06813c 7,349 BA view · diff
git:20260923.558b3812026-09-23 558b381 7,271 BA view · diff
git:20260923.03f66be2026-09-23 03f66be 7,281 BA view · diff
git:20260901.dd3607b2026-09-01 dd3607b 7,270 BA view · diff
git:20260818.2a2fe8e2026-08-18 2a2fe8e 7,275 BA view · diff
git:20260808.6f01c0a2026-08-08 6f01c0a 7,412 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7349 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shinpr/ai-coding-project-boilerplate · 234 stars · license MIT · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6mlsn6qxiuiy7kix
GET https://markdownregistry.com/api/v1/resolve?ref=shinpr/ai-coding-project-boilerplate/frontend-typescript-testing
GET https://markdownregistry.com/api/v1/blob/2eca38d7b9442304f484211bfc719b9d80fd1ce0daf58a6735388edc31f9fc23

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shinpr/ai-coding-project-boilerplate

coding-standards SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/coding-standards/SKILL.md · Detects code smells, anti-patterns, and readability issues. Use when implementing features, reviewing code, or…
git:20261014.578fed5 · audit A · 234 stars
documentation-criteria SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/documentation-criteria/SKILL.md · Determines which PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires and where each is stored. Use when…
git:20260923.86a3d79 · audit A · 234 stars
frontend-technical-spec SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-technical-spec/SKILL.md · Defines React environment, component architecture, state/data flow, build verification, and frontend non-functional…
git:20260923.03f66be · audit A · 234 stars
frontend-typescript-rules SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-typescript-rules/SKILL.md · Applies React/TypeScript type safety, component design, and state management rules. Use when implementing React…
git:20260912.c0d4362 · audit A · 234 stars
frontend-typescript-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-typescript-testing/SKILL.md · Designs frontend tests using the repository's configured React test and browser harnesses, including RTL, MSW, Vitest…
git:20261014.578fed5 · audit A · 234 stars
implementation-approach SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/implementation-approach/SKILL.md · Selects implementation strategy (vertical slice, horizontal, or hybrid) with risk assessment. Use when planning feature…
git:20261014.578fed5 · audit A · 234 stars
integration-e2e-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/integration-e2e-testing/SKILL.md · Selects and designs the smallest integration/E2E test set that proves accepted behavior at an observable boundary. Use…
git:20261014.578fed5 · audit A · 234 stars
llm-friendly-context SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/llm-friendly-context/SKILL.md · Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream agents can execute…
git:20260923.86a3d79 · audit A · 234 stars
project-context SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/project-context/SKILL.md · Marks project context as unconfigured until domain constraints, repository quality standards, phase, conventions, and…
git:20260901.b347ae2 · audit A · 234 stars
requirement-convergence SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/requirement-convergence/SKILL.md · Separates the outcome a change must produce from the requirements proposed to reach it, records what the user excluded…
git:20260923.558b381 · audit A · 234 stars
skill-optimization SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/skill-optimization/SKILL.md · Evaluates and optimizes skill file quality using 9 content patterns and 10 editing principles. Use when creating…
git:20260831.b183037 · audit A · 234 stars
subagents-orchestration-guide SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/subagents-orchestration-guide/SKILL.md · Coordinates subagents through scale-based planning, approval, implementation, verification, and escalation flows. Use…
git:20261003.24e6460 · audit A · 234 stars

Every file in shinpr/ai-coding-project-boilerplate

Other files named frontend-typescript-testing

frontend-typescript-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-zh-CN/frontend-typescript-testing/SKILL.md · 使用仓库已配置的 React 测试与浏览器测试工具(包括 RTL、MSW、Vitest,以及存在时的 Playwright)设计前端测试。适用于新增或评审组件测试、加载/错误状态测试、集成测试或前端 E2E 测试时。
git:20261014.f06813c · audit A · 234 stars
frontend-typescript-testing SKILL.md skill
shinpr/ai-coding-project-boilerplate · .claude/skills-en/frontend-typescript-testing/SKILL.md · Designs frontend tests using the repository's configured React test and browser harnesses, including RTL, MSW, Vitest…
git:20261014.578fed5 · audit A · 234 stars

Browse by kind, by grade A, or by owner.