Skip to content

Commit 710462c

Browse files
committed
Setup enzyme
1 parent 26291b6 commit 710462c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/setupTests.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// jest-dom adds custom jest matchers for asserting on DOM nodes.
2-
// allows you to do things like:
3-
// expect(element).toHaveTextContent(/react/i)
4-
// learn more: https://github.com/testing-library/jest-dom
5-
import '@testing-library/jest-dom/extend-expect'
1+
import { configure } from 'enzyme'
2+
import Adapter from 'enzyme-adapter-react-16'
3+
4+
configure({ adapter: new Adapter() })

0 commit comments

Comments
 (0)