diff --git a/src/setupTests.ts b/src/setupTests.ts index 74b1a27..96574a7 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -3,3 +3,7 @@ // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom/extend-expect'; +const enzyme = require('enzyme'); +const Adapter = require('enzyme-adapter-react-16'); + +enzyme.configure({ adapter: new Adapter() });