AgentHubAgentHub

react18-enzyme-to-rtl

SkillSkillsMP

io.github.github/awesome-copilot/react18-enzyme-to-rtl · vmain

Provides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mount, wrapper.find(), wrapper.simulate(), wrapper.prop(), wrapper.state(), wrapper.instance(), Enzyme configure/Adapter calls, or any test file that imports from enzyme. This skill covers the full API mapping and the philosophy shift from implementation testing to behavior testing. Always read this skill before rewriting Enzyme tests - do not translate Enzyme APIs 1:1, that produces brittle RTL tests.

概览

react18-enzyme-to-rtl 是一个Agent Skill,收录自 SkillsMP。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。

安装

选择你的平台查看安装方式

# 通用 CLI(Cursor / Claude Code / Codex 等均支持)
npx skills add github/awesome-copilot@react18-enzyme-to-rtl

使用方式

安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。

相关资源

统一 Manifest

{
  "id": "io.github.github/awesome-copilot/react18-enzyme-to-rtl",
  "type": "skill",
  "version": "main",
  "displayName": "react18-enzyme-to-rtl",
  "description": "Provides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mount, wrapper.find(), wrapper.simulate(), wrapper.prop(), wrapper.state(), wrapper.instance(), Enzyme configure/Adapter calls, or any test file that imports from enzyme. This skill covers the full API mapping and the philosophy shift from implementation testing to behavior testing. Always read this skill before rewriting Enzyme tests - do not translate Enzyme APIs 1:1, that produces brittle RTL tests.",
  "author": {
    "name": "github",
    "url": "https://github.com/github"
  },
  "repository": {
    "url": "https://github.com/github/awesome-copilot",
    "source": "github",
    "subfolder": "skills/react18-enzyme-to-rtl"
  },
  "homepage": "https://skillsmp.com/skills/github-awesome-copilot-skills-react18-enzyme-to-rtl-skill-md",
  "distribution": {
    "packages": [
      {
        "registryType": "source",
        "identifier": "github/awesome-copilot@react18-enzyme-to-rtl",
        "version": "main",
        "runtimeHint": "npx skills add"
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "codex",
    "vscode"
  ],
  "keywords": [
    "stars:34735"
  ],
  "provenance": {
    "origin": "skillsmp",
    "originalId": "github-awesome-copilot-skills-react18-enzyme-to-rtl-skill-md",
    "originalUrl": "https://skillsmp.com/skills/github-awesome-copilot-skills-react18-enzyme-to-rtl-skill-md",
    "isOfficial": false,
    "status": "active"
  }
}
react18-enzyme-to-rtl — Agent Skill 安装与配置 · AgentHub