本文へスキップ
Skillpedia
テスト48k · #4985

javascript-testing-patterns

できること

このガイドは、JavaScriptやTypeScriptのコードが正しく動作するかをテストする方法を教えます。新規プロジェクトの準備から、より複雑なテストのシナリオまでを扱っています。

使う場面

  • ✓新しいプロジェクトのテスト環境を整えるとき
  • ✓コードの特定の部分に対するテストを書くとき
  • ✓コードの異なる部分同士の連携をテストするとき

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/javascript-testing-patterns/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/javascript-testing-patterns/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“外部のデータに依存する関数をテストするには、どうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIはこのガイドの手順を使って、テストの設定方法と書き方を示します。さまざまな種類のテストを説明し、外部への依存をどのように模擬するかも解説できます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

JavaScript Testing Patterns

Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.

Use this skill when

  • Setting up test infrastructure for new projects
  • Writing unit tests for functions and classes
  • Creating integration tests for APIs and services
  • Implementing end-to-end tests for user flows
  • Mocking external dependencies and APIs
  • Testing React, Vue, or other frontend components
  • Implementing test-driven development (TDD)
  • Setting up continuous testing in CI/CD pipelines

Do not use this skill when

  • The task is unrelated to javascript testing patterns
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

プログラミングにおけるテストとは何ですか?

テストは、コードが期待どおりに動作し、バグがないかを確認するためのチェックのことです。

TDDとは何ですか?

TDDは「テスト駆動開発(Test-Driven Development)」の略で、実際のコードを書く前にテストを書く開発手法です。

結合テストとは何ですか?

結合テストは、コードの異なる部分が互いに正しく連携して動作するかを確認するテストです。

詳細

作者による元の説明

Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4985
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル