home/categories/testing/elastic-kibana-agents-skills-enzyme-to-rtl-skill-md
testingtesting-security

enzyme-to-rtl

Migrate Enzyme tests to React Testing Library (RTL). Use when converting shallow/mount enzyme tests to RTL render, replacing enzyme selectors with RTL queries, updating snapshot tests, or when the user mentions enzyme migration, RTL migration, or react-testing-library.

elastic
maintainer
elastic
Updated 3/2/2026
Stars
21033
Forks
8549
quick start

Installation and usage

Migrate Enzyme tests to React Testing Library (RTL). Use when converting shallow/mount enzyme tests to RTL render, replacing enzyme selectors with RTL queries, updating snapshot tests, or when the user mentions enzyme migration, RTL migration, or react-testing-library.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use enzyme-to-rtl