Skip to content

Commit 369e91c

Browse files
stenin-nikitayarastqt
authored andcommitted
chore: update to react@17
1 parent ff86996 commit 369e91c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.config/jest/jest.setup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use strict'
22

33
const 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

67
Enzyme.configure({ adapter: new Adapter() })
78

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
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",
@@ -30,8 +30,8 @@
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",

0 commit comments

Comments
 (0)