File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ test.each([
158158 [ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
159159] as const ) ( 'toBeDisabled()/toBeEnabled() supports %s with "disabled" prop' , ( _ , Component ) => {
160160 render (
161- // @ts -expect-error disabled prop is not available on all Touchables
162161 < Component disabled testID = "subject" >
163162 < Text > Button</ Text >
164163 </ Component > ,
@@ -190,7 +189,6 @@ test.each([
190189 'toBeDisabled()/toBeEnabled() supports %s with "aria-disabled" prop' ,
191190 ( _ , Component ) => {
192191 render (
193- // @ts -expect-error too generic for typescript
194192 < Component testID = "subject" aria-disabled >
195193 < Text > Hello</ Text >
196194 </ Component > ,
@@ -217,7 +215,6 @@ test.each([
217215 'toBeDisabled()/toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
218216 ( _ , Component ) => {
219217 render (
220- // @ts -expect-error disabled prop is not available on all Touchables
221218 < Component testID = "subject" accessibilityState = { { disabled : true } } >
222219 < Text > Hello</ Text >
223220 </ Component > ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function renderWithStringValidation<T>(
9595
9696function buildRenderResult (
9797 renderer : ReactTestRenderer ,
98- wrap : ( element : React . ReactElement ) => JSX . Element ,
98+ wrap : ( element : React . ReactElement ) => React . JSX . Element ,
9999) {
100100 const update = updateWithAct ( renderer , wrap ) ;
101101 const instance = renderer . root ;
You can’t perform that action at this time.
0 commit comments