Skip to content

Commit 13963e9

Browse files
committed
3.10.0 rc - due to React 19 won't pass test
1 parent 5d2261b commit 13963e9

File tree

3 files changed

+1479
-763
lines changed

3 files changed

+1479
-763
lines changed

jest-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { configure } from 'enzyme'
2-
import Adapter from 'enzyme-adapter-react-16'
2+
import Adapter from '@cfaester/enzyme-adapter-react-18'
33

44
// Configure the enzyme adapter.
55
configure({ adapter: new Adapter() })

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-h5-audio-player",
3-
"version": "3.10.0",
3+
"version": "3.10.0-rc.0",
44
"description": "A customizable React audio player. Written in TypeScript. Mobile compatible. Keyboard friendly",
55
"main": "./lib/index.js",
66
"module": "./es/index.js",
@@ -71,6 +71,7 @@
7171
"@babel/preset-env": "^7.10.2",
7272
"@babel/preset-react": "^7.10.1",
7373
"@babel/preset-typescript": "^7.10.1",
74+
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
7475
"@storybook/addon-actions": "^6.1.14",
7576
"@storybook/addon-docs": "^6.1.14",
7677
"@storybook/react": "^6.1.14",
@@ -82,21 +83,21 @@
8283
"cross-env": "^7.0.2",
8384
"css-loader": "^5.2.7",
8485
"enzyme": "^3.11.0",
85-
"enzyme-adapter-react-16": "^1.15.2",
8686
"eslint": "^7.2.0",
8787
"eslint-config-prettier": "^8.1.0",
8888
"eslint-plugin-jsx-a11y": "^6.2.3",
8989
"eslint-plugin-prettier": "^3.1.4",
9090
"eslint-plugin-react": "^7.20.0",
9191
"husky": "^6.0.0",
92-
"jest": "^26.6.3",
92+
"jest": "^28.0.0",
93+
"jest-environment-jsdom": "^29.7.0",
9394
"less-plugin-sass2less": "^1.2.0",
9495
"lint-staged": "^10.2.10",
9596
"node-sass": "^7.0.1",
9697
"npm-run-all": "^4.1.5",
9798
"prettier": "^2.0.5",
98-
"react": "^19",
99-
"react-dom": "^19",
99+
"react": "^18",
100+
"react-dom": "^18",
100101
"sass": "^1.26.8",
101102
"sass-loader": "^10.2.0",
102103
"static-server": "^2.2.1",

0 commit comments

Comments
 (0)