File tree Expand file tree Collapse file tree 5 files changed +604
-687
lines changed Expand file tree Collapse file tree 5 files changed +604
-687
lines changed Original file line number Diff line number Diff line change 5151 test :
5252 needs : [install-cache-deps]
5353 runs-on : ubuntu-latest
54- name : Test (concurrent)
54+ name : Test
5555 steps :
5656 - name : Checkout
5757 uses : actions/checkout@v4
@@ -67,16 +67,21 @@ jobs:
6767 env :
6868 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
6969
70- test-legacy :
70+ test-react-18 :
7171 needs : [install-cache-deps]
7272 runs-on : ubuntu-latest
73- name : Test (legacy)
73+ name : Test React 18
7474 steps :
7575 - name : Checkout
7676 uses : actions/checkout@v4
7777
7878 - name : Setup Node.js and deps
7979 uses : ./.github/actions/setup-deps
8080
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 7272 "@babel/preset-react" : " ^7.25.9" ,
7373 "@babel/preset-typescript" : " ^7.26.0" ,
7474 "@callstack/eslint-config" : " ^15.0.0" ,
75- "@react-native/babel-preset" : " 0.77.0 " ,
75+ "@react-native/babel-preset" : " 0.78.0-rc.3 " ,
7676 "@release-it/conventional-changelog" : " ^10.0.0" ,
7777 "@relmify/jest-serializer-strip-ansi" : " ^1.0.2" ,
7878 "@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" ,
8181 "babel-jest" : " ^29.7.0" ,
8282 "babel-plugin-module-resolver" : " ^5.0.2" ,
8383 "del-cli" : " ^6.0.0" ,
8686 "flow-bin" : " ~0.170.0" ,
8787 "jest" : " ^29.7.0" ,
8888 "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 " ,
9292 "release-it" : " ^18.0.0" ,
9393 "typescript" : " ^5.6.3" ,
9494 "typescript-eslint" : " ^8.19.1"
Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ test.each([
159159 [ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
160160] as const ) ( 'toBeDisabled()/toBeEnabled() supports %s with "disabled" prop' , ( _ , Component ) => {
161161 render (
162- // @ts -expect-error disabled prop is not available on all Touchables
163162 < Component disabled testID = "subject" >
164163 < Text > Button</ Text >
165164 </ Component > ,
@@ -191,7 +190,6 @@ test.each([
191190 'toBeDisabled()/toBeEnabled() supports %s with "aria-disabled" prop' ,
192191 ( _ , Component ) => {
193192 render (
194- // @ts -expect-error too generic for typescript
195193 < Component testID = "subject" aria-disabled >
196194 < Text > Hello</ Text >
197195 </ Component > ,
@@ -218,7 +216,6 @@ test.each([
218216 'toBeDisabled()/toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
219217 ( _ , Component ) => {
220218 render (
221- // @ts -expect-error disabled prop is not available on all Touchables
222219 < Component testID = "subject" accessibilityState = { { disabled : true } } >
223220 < Text > Hello</ Text >
224221 </ Component > ,
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ function renderWithStringValidation<T>(
9696
9797function buildRenderResult (
9898 renderer : ReactTestRenderer ,
99- wrap : ( element : React . ReactElement ) => JSX . Element ,
99+ wrap : ( element : React . ReactElement ) => React . JSX . Element ,
100100) {
101101 const update = updateWithAct ( renderer , wrap ) ;
102102 const instance = renderer . root ;
You can’t perform that action at this time.
0 commit comments