File tree Expand file tree Collapse file tree 3 files changed +294
-17
lines changed Expand file tree Collapse file tree 3 files changed +294
-17
lines changed Original file line number Diff line number Diff line change 7
7
"@testing-library/jest-dom" : " ^4.2.4" ,
8
8
"@testing-library/react" : " ^9.3.2" ,
9
9
"@testing-library/user-event" : " ^7.1.2" ,
10
+ "enzyme" : " ^3.11.0" ,
11
+ "enzyme-adapter-react-16" : " ^1.15.2" ,
10
12
"gh-pages" : " ^2.2.0" ,
11
13
"react" : " ^16.12.0" ,
12
14
"react-dom" : " ^16.12.0" ,
13
- "react-scripts" : " 3.3.0"
15
+ "react-scripts" : " 3.3.0" ,
16
+ "react-test-renderer" : " ^16.12.0"
14
17
},
15
18
"devDependencies" : {
16
19
"babel-eslint" : " ^10.0.3" ,
Original file line number Diff line number Diff line change 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 ( ) } ) ;
You can’t perform that action at this time.
0 commit comments