Skip to content

Commit fd7d173

Browse files
author
Raice Hannay
committed
update dependencies
1 parent 42f1165 commit fd7d173

File tree

6 files changed

+1886
-1292
lines changed

6 files changed

+1886
-1292
lines changed

Diff for: jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
},
1212
globals: {
1313
"ts-jest": {
14-
tsConfig: {
14+
tsconfig: {
1515
target: "es6",
1616
},
1717
},

Diff for: jest.setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
import EnzymeAdapter from "@wojtekmaj/enzyme-adapter-react-17";
12
import { configure } from "enzyme";
2-
import EnzymeAdapter from "enzyme-adapter-react-16";
33

44
configure({ adapter: new EnzymeAdapter() });

Diff for: package.json

+29-30
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Raice Hannay <[email protected]>",
44
"description": "A set of classes to make setting up React components for unit tests easy.",
55
"license": "ISC",
6-
"version": "2.0.4",
6+
"version": "2.1.0",
77
"keywords": [
88
"component",
99
"enzyme",
@@ -45,9 +45,9 @@
4545
"types": "dist/index.d.ts",
4646
"peerDependencies": {
4747
"enzyme": ">= 3.0.0",
48-
"react": ">= 16.0.0",
49-
"react-intl": ">= 3.0.0",
50-
"react-redux": ">= 7.0.0",
48+
"react": ">= 17.0.0",
49+
"react-intl": ">= 5.0.0",
50+
"react-redux": ">= 7.2.0",
5151
"redux": ">= 4.0.0"
5252
},
5353
"peerDependenciesMeta": {
@@ -62,38 +62,37 @@
6262
}
6363
},
6464
"devDependencies": {
65-
"@types/enzyme": "^3.10.5",
66-
"@types/enzyme-adapter-react-16": "^1.0.6",
67-
"@types/jest": "^25.1.4",
68-
"@types/react": "^16.9.31",
69-
"@types/react-redux": "^7.1.7",
70-
"@typescript-eslint/eslint-plugin": "^2.26.0",
65+
"@types/enzyme": "^3.10.8",
66+
"@types/jest": "^26.0.15",
67+
"@types/react": "^16.9.56",
68+
"@types/react-redux": "^7.1.11",
69+
"@typescript-eslint/eslint-plugin": "^4.8.1",
70+
"@wojtekmaj/enzyme-adapter-react-17": "^0.3.1",
7171
"cross-env": "^7.0.2",
7272
"enzyme": "^3.11.0",
73-
"enzyme-adapter-react-16": "^1.15.2",
74-
"enzyme-to-json": "^3.4.4",
75-
"eslint": "^6.8.0",
76-
"eslint-config-voodoocreation": "^1.1.1",
77-
"eslint-plugin-import": "^2.20.2",
78-
"eslint-plugin-jest": "^23.8.2",
79-
"eslint-plugin-jsx-a11y": "^6.2.3",
80-
"eslint-plugin-prefer-arrow": "^1.1.7",
81-
"eslint-plugin-react": "^7.19.0",
82-
"eslint-plugin-react-hooks": "^3.0.0",
83-
"jest": "^25.2.4",
73+
"enzyme-to-json": "^3.6.1",
74+
"eslint": "^7.13.0",
75+
"eslint-config-voodoocreation": "^1.2.0",
76+
"eslint-plugin-import": "^2.22.1",
77+
"eslint-plugin-jest": "^24.1.3",
78+
"eslint-plugin-jsx-a11y": "^6.4.1",
79+
"eslint-plugin-prefer-arrow": "^1.2.2",
80+
"eslint-plugin-react": "^7.21.5",
81+
"eslint-plugin-react-hooks": "^4.2.0",
82+
"jest": "^26.6.3",
8483
"npm-run-all": "^4.1.5",
85-
"prettier": "^2.0.2",
86-
"react": "^16.13.1",
87-
"react-dom": "^16.13.1",
88-
"react-intl": "^4.3.1",
89-
"react-redux": "^7.2.0",
84+
"prettier": "^2.1.2",
85+
"react": "^17.0.1",
86+
"react-dom": "^17.0.1",
87+
"react-intl": "^5.10.1",
88+
"react-redux": "^7.2.2",
9089
"redux": "^4.0.5",
91-
"ts-jest": "^25.3.0",
92-
"typescript": "^3.8.3",
90+
"ts-jest": "^26.4.4",
91+
"typescript": "^4.0.5",
9392
"typescript-fsa": "^3.0.0",
94-
"typescript-fsa-reducers": "^1.2.1"
93+
"typescript-fsa-reducers": "^1.2.2"
9594
},
9695
"dependencies": {
97-
"ts-deepmerge": "^1.0.5"
96+
"ts-deepmerge": "^1.0.6"
9897
}
9998
}

Diff for: src/Wrapper.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export default class Wrapper<
222222
/**
223223
* Resets the scenario-specific children and props for the instance
224224
*/
225+
// eslint-disable-next-line
225226
protected reset() {
226227
this.scenarioChildren = undefined;
227228
this.scenarioProps = {};

Diff for: src/WrapperWithRedux.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export default abstract class WrapperWithRedux<
178178
/**
179179
* Resets all scenario-specific props, children and Redux store state for the instance
180180
*/
181+
// eslint-disable-next-line
181182
protected reset() {
182183
super.reset();
183184

0 commit comments

Comments
 (0)