Lightlines
By github

react18-enzyme-to-rtl

github736 installs

Behavior-focused React tests, without Enzyme.

What it does

Guides the migration of Enzyme tests to behavior-focused React Testing Library tests for React 18.

When to use it

Use when rewriting Enzyme tests, including tests using shallow, mount, wrapper APIs, or Enzyme adapters.

How to use it

It changes how the agent rewrites Enzyme tests, replacing checks of internal state and methods with assertions on visible outcomes.

What you provide

  • An existing project

Latest review

What you need · 3

The core rewrite template imports rendering, queries, events, and asynchronous assertions from this package.

The core rewrite template imports this package to simulate user interactions.

The setup guidance assumes the project's Jest configuration loads this package's matchers.


Access · 0

No additional actions listed.