File tree Expand file tree Collapse file tree 3 files changed +318
-33
lines changed
Expand file tree Collapse file tree 3 files changed +318
-33
lines changed Original file line number Diff line number Diff line change 4444 "react-router-dom" : " ^5.0.0"
4545 },
4646 "devDependencies" : {
47+ "@cfaester/enzyme-adapter-react-18" : " ^0.8.0" ,
4748 "@babel/core" : " ^7.21.3" ,
4849 "@storybook/addon-actions" : " 6.5.0-beta.1" ,
4950 "@storybook/addon-controls" : " 6.5.0-beta.1" ,
5354 "@storybook/react" : " 6.5.0-beta.1" ,
5455 "@types/classnames" : " ^2.3.1" ,
5556 "@types/deep-equal" : " ^1.0.1" ,
57+ "@types/enzyme" : " ^3.10.12" ,
5658 "@types/history" : " ^4.7.8" ,
5759 "@types/jest" : " ^26.0.15" ,
5860 "@types/node" : " ^18.15.3" ,
6971 "babel-loader" : " ^8.2.5" ,
7072 "copy-webpack-plugin" : " ^4.3.1" ,
7173 "css-loader" : " ^3.6.0" ,
74+ "enzyme" : " ^3.11.0" ,
75+ "enzyme-to-json" : " ^3.6.2" ,
7276 "eslint" : " ^8.23.0" ,
7377 "eslint-plugin-react" : " ^7.31.1" ,
7478 "glob" : " ^8.0.3" ,
Original file line number Diff line number Diff line change 1+ import Enzyme from 'enzyme'
2+ import Adapter from '@cfaester/enzyme-adapter-react-18'
3+
4+ Enzyme . configure ( { adapter : new Adapter ( ) } ) ;
5+
16// Configure testing environment for React 18
27( globalThis as any ) . IS_REACT_ACT_ENVIRONMENT = true ;
You can’t perform that action at this time.
0 commit comments