File tree 5 files changed +604
-687
lines changed
5 files changed +604
-687
lines changed Original file line number Diff line number Diff line change 51
51
test :
52
52
needs : [install-cache-deps]
53
53
runs-on : ubuntu-latest
54
- name : Test (concurrent)
54
+ name : Test
55
55
steps :
56
56
- name : Checkout
57
57
uses : actions/checkout@v4
@@ -67,16 +67,21 @@ jobs:
67
67
env :
68
68
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
69
69
70
- test-legacy :
70
+ test-react-18 :
71
71
needs : [install-cache-deps]
72
72
runs-on : ubuntu-latest
73
- name : Test (legacy)
73
+ name : Test React 18
74
74
steps :
75
75
- name : Checkout
76
76
uses : actions/checkout@v4
77
77
78
78
- name : Setup Node.js and deps
79
79
uses : ./.github/actions/setup-deps
80
80
81
- - name : Test in legacy mode
82
- run : CONCURRENT_MODE=0 yarn test:ci
81
+ - name : Switch to React 18
82
+ run : |
83
+ yarn remove react react-test-renderer react-native @react-native/babel-preset
84
+ yarn add -D react@18.3.1 react-test-renderer@18.3.1 react-native@0.77.0 @react-native/babel-preset@0.77.0
85
+
86
+ - name : Test
87
+ run : yarn test:ci
Original file line number Diff line number Diff line change 72
72
"@babel/preset-react" : " ^7.25.9" ,
73
73
"@babel/preset-typescript" : " ^7.26.0" ,
74
74
"@callstack/eslint-config" : " ^15.0.0" ,
75
- "@react-native/babel-preset" : " 0.77.0 " ,
75
+ "@react-native/babel-preset" : " 0.78.0-rc.3 " ,
76
76
"@release-it/conventional-changelog" : " ^10.0.0" ,
77
77
"@relmify/jest-serializer-strip-ansi" : " ^1.0.2" ,
78
78
"@types/jest" : " ^29.5.14" ,
79
- "@types/react" : " ^18.3.12 " ,
80
- "@types/react-test-renderer" : " ^18.3 .0" ,
79
+ "@types/react" : " ^19.0.0 " ,
80
+ "@types/react-test-renderer" : " ^19.0 .0" ,
81
81
"babel-jest" : " ^29.7.0" ,
82
82
"babel-plugin-module-resolver" : " ^5.0.2" ,
83
83
"del-cli" : " ^6.0.0" ,
86
86
"flow-bin" : " ~0.170.0" ,
87
87
"jest" : " ^29.7.0" ,
88
88
"prettier" : " ^2.8.8" ,
89
- "react" : " 18.3.1 " ,
90
- "react-native" : " 0.77.0 " ,
91
- "react-test-renderer" : " 18.3.1 " ,
89
+ "react" : " ^19.0.0 " ,
90
+ "react-native" : " 0.78.0-rc.3 " ,
91
+ "react-test-renderer" : " ^19.0.0 " ,
92
92
"release-it" : " ^18.0.0" ,
93
93
"typescript" : " ^5.6.3" ,
94
94
"typescript-eslint" : " ^8.19.1"
Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ test.each([
159
159
[ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
160
160
] as const ) ( 'toBeDisabled()/toBeEnabled() supports %s with "disabled" prop' , ( _ , Component ) => {
161
161
render (
162
- // @ts -expect-error disabled prop is not available on all Touchables
163
162
< Component disabled testID = "subject" >
164
163
< Text > Button</ Text >
165
164
</ Component > ,
@@ -191,7 +190,6 @@ test.each([
191
190
'toBeDisabled()/toBeEnabled() supports %s with "aria-disabled" prop' ,
192
191
( _ , Component ) => {
193
192
render (
194
- // @ts -expect-error too generic for typescript
195
193
< Component testID = "subject" aria-disabled >
196
194
< Text > Hello</ Text >
197
195
</ Component > ,
@@ -218,7 +216,6 @@ test.each([
218
216
'toBeDisabled()/toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
219
217
( _ , Component ) => {
220
218
render (
221
- // @ts -expect-error disabled prop is not available on all Touchables
222
219
< Component testID = "subject" accessibilityState = { { disabled : true } } >
223
220
< Text > Hello</ Text >
224
221
</ Component > ,
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ function renderWithStringValidation<T>(
96
96
97
97
function buildRenderResult (
98
98
renderer : ReactTestRenderer ,
99
- wrap : ( element : React . ReactElement ) => JSX . Element ,
99
+ wrap : ( element : React . ReactElement ) => React . JSX . Element ,
100
100
) {
101
101
const update = updateWithAct ( renderer , wrap ) ;
102
102
const instance = renderer . root ;
You can’t perform that action at this time.
0 commit comments