File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict'
22
33const Enzyme = require ( 'enzyme' )
4- const Adapter = require ( 'enzyme-adapter-react-16' )
4+ // TODO: migrate to @testing -library
5+ const Adapter = require ( '@wojtekmaj/enzyme-adapter-react-17' )
56
67Enzyme . configure ( { adapter : new Adapter ( ) } )
78
Original file line number Diff line number Diff line change 1717 "@types/react" : " 16.8.8" ,
1818 "@typescript-eslint/eslint-plugin" : " 2.22.0" ,
1919 "@typescript-eslint/parser" : " 2.22.0" ,
20+ "@wojtekmaj/enzyme-adapter-react-17" : " 0.6.1" ,
2021 "chalk" : " 2.4.1" ,
2122 "enzyme" : " 3.7.0" ,
22- "enzyme-adapter-react-16" : " 1.7.0" ,
2323 "eslint" : " 6.8.0" ,
2424 "eslint-plugin-react" : " 7.19.0" ,
2525 "eslint-plugin-react-hooks" : " 2.5.0" ,
3030 "lint-staged" : " 9.2.5" ,
3131 "prettier" : " 1.18.2" ,
3232 "pretty-bytes" : " 5.2.0" ,
33- "react" : " 16.8.4 " ,
34- "react-dom" : " 16.8.4 " ,
33+ "react" : " 17.0.2 " ,
34+ "react-dom" : " 17.0.2 " ,
3535 "rollup" : " 1.10.1" ,
3636 "rollup-plugin-node-resolve" : " 4.2.3" ,
3737 "rollup-plugin-replace" : " 2.1.0" ,
You can’t perform that action at this time.
0 commit comments