enzyme-to-rtl

Official

Migrate Enzyme tests to React Testing Library.

Authorelastic
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the migration of existing Enzyme tests to React Testing Library (RTL), ensuring test integrity while modernizing your testing framework.

Core Features & Use Cases

  • Automated Migration: Converts Enzyme imports, rendering methods (shallow/mount), and selectors to their RTL equivalents.
  • Assertion Conversion: Adapts Enzyme assertions to RTL's DOM-querying approach.
  • Snapshot Updates: Guides the regeneration of snapshot tests for the new testing paradigm.
  • Use Case: When refactoring a large React application, use this Skill to systematically update hundreds of Enzyme tests to RTL, reducing manual effort and potential errors.

Quick Start

Use the enzyme-to-rtl skill to migrate the test file '/path/to/your/enzyme/test.js'.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: enzyme-to-rtl
Download link: https://github.com/elastic/kibana/archive/main.zip#enzyme-to-rtl

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.