File tree 2 files changed +1
-4
lines changed 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ test.each([
158
158
[ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
159
159
] as const ) ( 'toBeDisabled()/toBeEnabled() supports %s with "disabled" prop' , ( _ , Component ) => {
160
160
render (
161
- // @ts -expect-error disabled prop is not available on all Touchables
162
161
< Component disabled testID = "subject" >
163
162
< Text > Button</ Text >
164
163
</ Component > ,
@@ -190,7 +189,6 @@ test.each([
190
189
'toBeDisabled()/toBeEnabled() supports %s with "aria-disabled" prop' ,
191
190
( _ , Component ) => {
192
191
render (
193
- // @ts -expect-error too generic for typescript
194
192
< Component testID = "subject" aria-disabled >
195
193
< Text > Hello</ Text >
196
194
</ Component > ,
@@ -217,7 +215,6 @@ test.each([
217
215
'toBeDisabled()/toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
218
216
( _ , Component ) => {
219
217
render (
220
- // @ts -expect-error disabled prop is not available on all Touchables
221
218
< Component testID = "subject" accessibilityState = { { disabled : true } } >
222
219
< Text > Hello</ Text >
223
220
</ Component > ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function renderWithStringValidation<T>(
95
95
96
96
function buildRenderResult (
97
97
renderer : ReactTestRenderer ,
98
- wrap : ( element : React . ReactElement ) => JSX . Element ,
98
+ wrap : ( element : React . ReactElement ) => React . JSX . Element ,
99
99
) {
100
100
const update = updateWithAct ( renderer , wrap ) ;
101
101
const instance = renderer . root ;
You can’t perform that action at this time.
0 commit comments