بنقرة واحدة
testing-mock-async-hygiene
Keep mocks, async setup, and test assertions clean and aligned with the code under test.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Keep mocks, async setup, and test assertions clean and aligned with the code under test.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Apply when implementing features, fixing bugs, debugging errors, investigating failures, tracing root causes, reviewing tech debt, tracing issues, planning fixes, or completing any task. Enforces parallel sub-agent implementation, independent adversarial review, and a 95% confidence gate before stopping.
RAGAPPv3 testing policy and conventions. Load before writing or modifying any test, fixing a test/CI failure, or adding coverage. Covers backend pytest + unittest (SimpleConnectionPool dependency-override harness, FK cascades, the Python 3.11-vs-local event-loop trap) and frontend Vitest + React Testing Library + jsdom (MemoryRouter, Radix Select, react-virtual mock patterns). This repo's frontend uses Vitest, NOT bun:test.
Keep dependency and lockfile changes aligned with CI expectations.
Verify all required QA gate artifacts and completion criteria before marking a task or phase complete.
Lightweight PR-time audit for whether changes are compatible with the actual RAGAPPv3 GitHub Actions workflow, dependency lockfiles, scripts, and cross-platform local validation.
Evidence-first code review for correctness bugs, AI-generated code smells, unsupported claims, unwired functionality, dependency hallucinations, and release-to-code mismatches.
| name | testing-mock-async-hygiene |
| description | Keep mocks, async setup, and test assertions clean and aligned with the code under test. |
| generated_from_knowledge | ["c3cfc3bb-0f9d-4d3b-9295-89f1bfbc82af","5e3c36f2-fb34-4976-a566-b65ba3c169e4","fc0771fa-fd12-4696-ba15-4a57cf8755d4","87aa8368-21df-4bb3-a1f5-e48b75f52e64","26690c1b-b69d-4999-85cf-ee5ac7b63bc3","ea40215e-552f-4b49-bb42-5188f512efcc","b414164d-5567-40f5-9624-56f3f4bed586"] |
| source_knowledge_ids | ["c3cfc3bb-0f9d-4d3b-9295-89f1bfbc82af","5e3c36f2-fb34-4976-a566-b65ba3c169e4","fc0771fa-fd12-4696-ba15-4a57cf8755d4","87aa8368-21df-4bb3-a1f5-e48b75f52e64","26690c1b-b69d-4999-85cf-ee5ac7b63bc3","ea40215e-552f-4b49-bb42-5188f512efcc","b414164d-5567-40f5-9624-56f3f4bed586"] |
| generated_at | "2026-07-08T07:30:00.000Z" |
| confidence | 0.6 |
| status | active |
| version | 1 |
| skill_origin | generated |
mockImplementation with URL routing when multiple endpoints are mocked in a single test; chain mockResolvedValueOnce calls in the exact order API calls will occur.data-testid attributes or semantic role/text selectors when multiple similar elements exist.When delegating a task affected by this skill, include:
SKILLS: file:.opencode/skills/generated/testing-mock-async-hygiene/SKILL.md