# Sync Testing Skill

> Command: sync-testing-skill

- Skill: `udecode/sync-testing-skill` (Agent Skill)
- Install (CLI): `npx skillmds add udecode/sync-testing-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/udecode/sync-testing-skill/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: udecode (https://skillmd.com/u/udecode)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/udecode/sync-testing-skill

---


Scan package tests, update @.agents/rules/testing.mdc with new patterns. Follow writing-skills: DRY, ultra-concise, token-efficient.

**Process:**

1. Glob `packages/[PACKAGE]/**/*.spec.{ts,tsx}`
2. Read 6-8 diverse tests: plugins, transforms, components, hooks, utils
3. Identify patterns NOT in testing.mdc:
   - Imports (ONLY `mock`/`spyOn` from bun:test - describe/it/expect are global)
   - Test organization, mocking, assertions, RTL, edge cases
4. Update testing.mdc: Add to existing sections (DRY), one example per pattern, Quick Reference if frequent
5. Report: `Found X patterns → Updated Y sections`

**Critical:**

- Only actual codebase patterns. No theoretical examples. No duplication.
- Test globals (`describe`, `it`, `expect`, etc.) are global via `tooling/config/global.d.ts` - NO imports needed
- ONLY import `mock` and `spyOn` when used

**Package:** Specify path (e.g., `packages/media`)

