React18 Enzyme To Rtl

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.

thedixitjain a6a4b82 3 files · 17.2 KB Updated 2 repo stars

File contents

thedixitjain/the-mega-skill-library/tree/main/library/testing-and-qa/react18-enzyme-to-rtl commit a6a4b827d6

Frequently asked questions

npx skillmds add thedixitjain/react18-enzyme-to-rtl