UNPKG

component-test-setup

Version:

Standardized test setup methods for React components in tests.

6 lines (4 loc) 194 B
// https://github.com/enzymejs/enzyme/issues/2429 const Adapter = require("@wojtekmaj/enzyme-adapter-react-17"); const Enzyme = require("enzyme"); Enzyme.configure({ adapter: new Adapter() });