File tree 3 files changed +34
-7
lines changed
3 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 37
37
[ ![ Tweet] ( https://img.shields.io/twitter/url/https/github.com/testing-library/react-hooks-testing-library.svg?style=social )] ( https://twitter.com/intent/tweet?text=Check%20out%20react-hooks-testing-library%20by%20%40testing-library%20https%3A%2F%2Fgithub.com%2Ftesting-library%2Freact-hooks-testing-library%20%F0%9F%91%8D )
38
38
<!-- prettier-ignore-end -->
39
39
40
+ ## A Note about React 18 Support
41
+
42
+ As part of the changes for React 18, it has been decided that the ` renderHook ` API provided by this
43
+ library will instead be included as official additions to both ` react-testing-library `
44
+ ([ PR] ( https://github.com/testing-library/react-testing-library/pull/991 ) ) and
45
+ ` react-native-testing-library `
46
+ ([ PR] ( https://github.com/callstack/react-native-testing-library/pull/923 ) ) with the intention being
47
+ to provide a more cohesive and consistent implementation for our users.
48
+
49
+ Please be patient as we finalise these changes in the respective testing libraries.
50
+ In the mean time you can install ` @testing-library/react@^13.1 `
51
+
40
52
## Table of Contents
41
53
42
54
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ route: '/'
23
23
24
24
<hr />
25
25
26
+ ## A Note about React 18 Support
27
+
28
+ As part of the changes for React 18, it has been decided that the ` renderHook ` API provided by this
29
+ library will instead be included as official additions to both ` react-testing-library `
30
+ ([ PR] ( https://github.com/testing-library/react-testing-library/pull/991 ) ) and
31
+ ` react-native-testing-library `
32
+ ([ PR] ( https://github.com/callstack/react-native-testing-library/pull/923 ) ) with the intention being
33
+ to provide a more cohesive and consistent implementation for our users.
34
+
35
+ Please be patient as we finalise these changes in the respective testing libraries.
36
+
26
37
## The problem
27
38
28
39
You're writing an awesome custom hook and you want to test it, but as soon as you call it you see
Original file line number Diff line number Diff line change 50
50
},
51
51
"dependencies" : {
52
52
"@babel/runtime" : " ^7.12.5" ,
53
- "@types/react" : " >=16.9.0" ,
54
- "@types/react-dom" : " >=16.9.0" ,
55
- "@types/react-test-renderer" : " >=16.9.0" ,
56
53
"react-error-boundary" : " ^3.1.0"
57
54
},
58
55
"devDependencies" : {
56
+ "@types/react" : " 17.0.44" ,
57
+ "@types/react-dom" : " 17.0.15" ,
58
+ "@types/react-test-renderer" : " 17.0.1" ,
59
59
"@typescript-eslint/eslint-plugin" : " 5.11.0" ,
60
60
"@typescript-eslint/parser" : " 5.11.0" ,
61
61
"all-contributors-cli" : " 6.20.0" ,
62
62
"codecov" : " 3.8.3" ,
63
- "cross-env" : " ^ 7.0.3" ,
63
+ "cross-env" : " 7.0.3" ,
64
64
"docz" : " 2.3.1" ,
65
65
"docz-theme-default" : " 1.2.0" ,
66
66
"docz-utils" : " 2.3.0" ,
75
75
"typescript" : " 4.5.5"
76
76
},
77
77
"peerDependencies" : {
78
- "react" : " >=16.9.0" ,
79
- "react-dom" : " >=16.9.0" ,
80
- "react-test-renderer" : " >=16.9.0"
78
+ "@types/react" : " ^16.9.0 || ^17.0.0" ,
79
+ "react" : " ^16.9.0 || ^17.0.0" ,
80
+ "react-dom" : " ^16.9.0 || ^17.0.0" ,
81
+ "react-test-renderer" : " ^16.9.0 || ^17.0.0"
81
82
},
82
83
"peerDependenciesMeta" : {
84
+ "@types/react" : {
85
+ "optional" : true
86
+ },
83
87
"react-dom" : {
84
88
"optional" : true
85
89
},
You can’t perform that action at this time.
0 commit comments