Навыки react-testing
📦

react-testing

Ревизия содержимого r1 Безопасно ⚙️ Внешние команды

信頼性の高いReactテストを構築する

Reactのテストスイートは、非同期状態、providers、mocksの扱いに一貫性がないと、不安定になりがちです。このスキルは、Claude、Codex、Claude Codeに、焦点を絞ったReactテストの実践的なパターンを提供します。

Поддерживает: Claude Codex Code(CC)
🥉 77 Бронза

Установить с помощью моего Агента

Скопируйте этот запрос в своего Агента. Он содержит каноническую страницу Skill и манифест.

Запрос агента
Review the Skillstore skill "react-testing" from https://skillstore.io/skills/cjharmath-react-testing.md and its manifest at https://skillstore.io/api/skills/cjharmath-react-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.

Ресурсы для AI-агентов

Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.

Протестировать

Использование «react-testing». ログインフォームには、必須項目、送信成功、loading behaviorのテストが必要です。

Ожидаемый результат:

  • validation、submission、disabled button statesに焦点を当てたテスト計画。
  • email、password、submit controlsに対する推奨accessible queries。
  • submit handlerとloading propのmocking guidance。

Использование «react-testing». Zustand store testでテストケース間にstateが漏れています。

Ожидаемый результат:

  • 各テスト前にinitial store stateを復元するreset strategy。
  • async actions完了後にfresh stateを読み取るためのアドバイス。
  • component re-rendersに依存せずにstate changesを確認するassertions。

Использование «react-testing». React Queryを使うcomponentが、providerがないため失敗します。

Ожидаемый результат:

  • 分離されたtest query clientを使う再利用可能なprovider wrapper。
  • deterministic testsに適したretryとcache settings。
  • loading statesとresolved statesのためのwaiting strategy。

Аудит безопасности

Безопасно

All static external command findings are false positives caused by Markdown code fences or inline backticks in documentation examples. The sensitive-data and reconnaissance findings are also false positives from normal test assertions. No evidence of prompt injection, data exfiltration, or malicious intent was found.

1
Просканировано файлов
501
Проанализировано строк
0
Пункты проверки
0
Ложные срабатывания проигнорированы
Последний завершенный статический и семантический аудит не обнаружил подтвержденных проблем безопасности. Это не доказывает отсутствие побочных эффектов у навыка.
Поделиться и цитировать этот отчет

Делитесь версионным отчетом об оценке, нейтральным значком, встраиваемой карточкой и цитатами. Skillstore публикует доказательства, не решая, безопасен ли этот Skill.

Открыть версионный отчет
Оценка безопасности

Копировать ссылку на отчёт

https://skillstore.io/skills/cjharmath-react-testing/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Значок Markdown

[![Skillstore security assessment](https://skillstore.io/badges/skills/cjharmath-react-testing/security.svg)](https://skillstore.io/skills/cjharmath-react-testing?utm_source=security_passport_badge)

Значок HTML

<a href="https://skillstore.io/skills/cjharmath-react-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-react-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Встраиваемая карточка

<iframe src="https://skillstore.io/embed/skills/cjharmath-react-testing.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Академические ссылки (APA · BibTeX · CFF)

Цитата APA

CJHarmath. (2026). react-testing security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-react-testing/audits/7

Цитата BibTeX

@techreport{cjharmath-cjharmath-react-testing-2026, author = {CJHarmath}, title = {react-testing security audit report (audit version 7)}, institution = {Skillstore}, year = {2026}, number = {7}, url = {https://skillstore.io/skills/cjharmath-react-testing/audits/7}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "react-testing security audit report (audit version 7)" version: "unspecified" type: report authors: - name: "CJHarmath" date-released: "2026-07-06" url: "https://skillstore.io/skills/cjharmath-react-testing/audits/7" identifiers: - type: other value: "skillstore:cjharmath-react-testing:audit:7" description: "Skillstore immutable audit report identifier"

Оценка Skillstore

Почему такая оценка Достоверность доказательств: Высокий
55
Архитектура
85
Сопровождаемость
87
Контент
70
Сообщество
78
Соответствие спецификации

Что вы можете построить

component test coverageを追加する

rendering、loading states、user actions、accessible outputを検証するテストを作成します。

stateful test suitesを安定化する

Zustand storesとReact Query clientsをリセットし、テストを分離された再現可能な状態に保ちます。

async UI failuresをデバッグする

React testsにおけるact warnings、timing issues、missing queries、mock mismatchesを解決します。

Попробуйте эти промпты

component testを作成する
このcomponentのReact Testing Library testsを書いてください。rendering、user actions、loading state、accessible queriesをカバーしてください。
async stateをテストする
このasync React state flowのtestsを作成してください。actまたはwaitForの使用、store reset、各async step後の明確なassertionsを含めてください。
providersとAPIsをmockする
React Query、routing、context providers、mocked API modulesを含むこのcomponentのtestsを設計してください。provider setupは再利用可能に保ってください。
失敗しているsuiteを診断する
この失敗しているReact test outputとtest fileをレビューしてください。考えられる原因を特定し、修正方法を説明し、より強いassertionsを提案してください。

Лучшие практики

  • ユーザーがページを操作する方法に合ったaccessible queriesを優先します。
  • 各テスト前にstores、mocks、query clientsをリセットします。
  • 最終状態をassertする前に、async UI changesを待ちます。

Избегать

  • テストケース間でmutable store stateを共有しないでください。
  • 動的または頻繁に変化するcontentにsnapshotsを使用しないでください。
  • async state updatesを確認せずにact warningsを無視しないでください。

Часто задаваемые вопросы

このスキルはどのtesting toolsに焦点を当てていますか?
React web applications向けのJestとReact Testing Libraryに焦点を当てています。
Zustand storesのテストに役立ちますか?
はい。store stateをリセットし、async store actionsを確認するためのパターンが含まれています。
React Query testsを扱っていますか?
はい。test query clientを作成し、componentsをQueryClientProviderでラップする方法を示します。
act warningsをデバッグできますか?
はい。一般的なact warningの原因を解決するwaiting patternsを説明します。
testsを自動的に実行しますか?
いいえ。test commandsとpatternsを文書化しますが、それ自体でcommandsを実行することはありません。
end-to-end testingに役立ちますか?
間接的にのみ役立ちます。このガイダンスはunit testsとintegration tests向けであり、browser automation suites向けではありません。

Сведения для разработчиков

Автор

CJHarmath

Лицензия

MIT

Ревизия Skillstore

r1

Примечание о версии

Автор не указал версию.

Ссылка

dd4a3ef9f20ddf38830950b4bb713df96b431fd6

Актуальность поддержки

18.07.2026

Использование

8 загрузок · 229 просмотров

Структура файлов

📄 SKILL.md

Больше от CJHarmath

Показать все
📦

rn-performance

79

React Nativeパフォーマンスの最適化

React Nativeアプリでは、リストの遅さ、余分なレンダー、JSスレッドの停止が発生することがあります。このスキルは、より高速なFlatList画面、メモ化されたコンポーネント、最適化されたセレクター、キャッシュされた画像、プロファイリングのための重点的なパターンを提供します。

Кодинг и разработка Просмотр
Показать все
📦

testing-patterns

81

コードベース全体で信頼性の高いテストを計画する

от 0xDarkMatter

このスキルは、テスト範囲を混在させずに、チームがテスト戦略、モック、データフィクスチャ、カバレッジゲート、CIパターンを選択するのに役立ちます。Claude、Codex、Claude Codeに、ユニット、統合、エンドツーエンド、TDD、パイプラインテストのための構造化されたガイダンスを提供します。

Кодинг и разработка Просмотр