File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 75
75
"@storybook/react" : " ~5.1.11" ,
76
76
"@storybook/theming" : " ~5.1.11" ,
77
77
"@types/chart.js" : " ~2.8.2" ,
78
+ "@types/enzyme" : " ^3.10.3" ,
78
79
"@types/jest" : " ~24.0.17" ,
79
80
"@types/react" : " ~16.9.1" ,
80
81
"@types/react-dom" : " ~16.8.5" ,
87
88
"commitlint-config-cz" : " ^0.12.1" ,
88
89
"coveralls" : " ^3.0.6" ,
89
90
"cz-conventional-changelog" : " ^3.0.2" ,
91
+ "enzyme" : " ^3.10.0" ,
92
+ "enzyme-adapter-react-16" : " ^1.14.0" ,
90
93
"husky" : " ~3.0.5" ,
91
94
"jest-canvas-mock" : " ~2.1.1" ,
92
95
"lint-staged" : " ~9.2.5" ,
111
114
},
112
115
"jest" : {
113
116
"setupFiles" : [
114
- " jest-canvas-mock"
117
+ " jest-canvas-mock" ,
118
+ " <rootDir>test-setup.ts"
115
119
]
116
120
}
117
121
}
Original file line number Diff line number Diff line change
1
+ const enzyme = require ( 'enzyme' )
2
+ const Adapter = require ( 'enzyme-adapter-react-16' )
3
+
4
+ enzyme . configure ( { adapter : new Adapter ( ) } )
You can’t perform that action at this time.
0 commit comments