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
更新於 3/2/2026
星標
21033
分支
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.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use enzyme-to-rtl