Skip to content

Commit 290f41c

Browse files
committed
update 2025-07-30
1 parent 6b846a5 commit 290f41c

30 files changed

+408
-392
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@
8787
"flow-bin": "~0.170.0",
8888
"jest": "^30.0.2",
8989
"prettier": "^2.8.8",
90-
"react": "19.1.0",
90+
"react": "19.1.1",
9191
"react-native": "nightly",
9292
"react-native-gesture-handler": "^2.27.1",
93-
"react-test-renderer": "19.1.0",
93+
"react-test-renderer": "19.1.1",
9494
"release-it": "^19.0.3",
9595
"typescript": "^5.6.3",
9696
"typescript-eslint": "^8.19.1"

src/__tests__/__snapshots__/render-debug.test.tsx.snap

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`debug 1`] = `
4-
"<View_withRef>
4+
"<View>
55
<Text>
66
Is the banana fresh?
77
</Text>
@@ -28,14 +28,14 @@ exports[`debug 1`] = `
2828
defaultValue="hello"
2929
value=""
3030
/>
31-
<View_withRef
31+
<View
3232
accessible={true}
3333
role="button"
3434
>
3535
<Text>
3636
Change freshness!
3737
</Text>
38-
</View_withRef>
38+
</View>
3939
<Text
4040
testID="duplicateText"
4141
>
@@ -49,11 +49,11 @@ exports[`debug 1`] = `
4949
<Text>
5050
0
5151
</Text>
52-
</View_withRef>"
52+
</View>"
5353
`;
5454

5555
exports[`debug changing component: bananaFresh button message should now be "fresh" 1`] = `
56-
"<View_withRef>
56+
"<View>
5757
<Text>
5858
Is the banana fresh?
5959
</Text>
@@ -80,7 +80,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
8080
defaultValue="hello"
8181
value=""
8282
/>
83-
<View_withRef
83+
<View
8484
accessibilityState={
8585
{
8686
"busy": undefined,
@@ -115,7 +115,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
115115
<Text>
116116
Change freshness!
117117
</Text>
118-
</View_withRef>
118+
</View>
119119
<Text
120120
testID="duplicateText"
121121
>
@@ -129,19 +129,19 @@ exports[`debug changing component: bananaFresh button message should now be "fre
129129
<Text>
130130
0
131131
</Text>
132-
</View_withRef>"
132+
</View>"
133133
`;
134134

135135
exports[`debug should use debugOptions from config when no option is specified 1`] = `
136-
"<View_withRef>
136+
"<View>
137137
<Text>
138138
hello
139139
</Text>
140-
</View_withRef>"
140+
</View>"
141141
`;
142142

143143
exports[`debug should use given options over config debugOptions 1`] = `
144-
"<View_withRef
144+
"<View
145145
style={
146146
{
147147
"backgroundColor": "red",
@@ -151,11 +151,11 @@ exports[`debug should use given options over config debugOptions 1`] = `
151151
<Text>
152152
hello
153153
</Text>
154-
</View_withRef>"
154+
</View>"
155155
`;
156156

157157
exports[`debug with only children prop 1`] = `
158-
"<View_withRef>
158+
"<View>
159159
<Text>
160160
Is the banana fresh?
161161
</Text>
@@ -166,11 +166,11 @@ exports[`debug with only children prop 1`] = `
166166
<TextInput />
167167
<TextInput />
168168
<TextInput />
169-
<View_withRef>
169+
<View>
170170
<Text>
171171
Change freshness!
172172
</Text>
173-
</View_withRef>
173+
</View>
174174
<Text>
175175
First Text
176176
</Text>
@@ -180,11 +180,11 @@ exports[`debug with only children prop 1`] = `
180180
<Text>
181181
0
182182
</Text>
183-
</View_withRef>"
183+
</View>"
184184
`;
185185

186186
exports[`debug with only prop whose value is bananaChef 1`] = `
187-
"<View_withRef>
187+
"<View>
188188
<Text>
189189
Is the banana fresh?
190190
</Text>
@@ -197,11 +197,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
197197
/>
198198
<TextInput />
199199
<TextInput />
200-
<View_withRef>
200+
<View>
201201
<Text>
202202
Change freshness!
203203
</Text>
204-
</View_withRef>
204+
</View>
205205
<Text>
206206
First Text
207207
</Text>
@@ -211,11 +211,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
211211
<Text>
212212
0
213213
</Text>
214-
</View_withRef>"
214+
</View>"
215215
`;
216216

217217
exports[`debug: All Props 1`] = `
218-
"<View_withRef>
218+
"<View>
219219
<Text>
220220
Is the banana fresh?
221221
</Text>
@@ -242,7 +242,7 @@ exports[`debug: All Props 1`] = `
242242
defaultValue="hello"
243243
value=""
244244
/>
245-
<View_withRef
245+
<View
246246
accessibilityState={
247247
{
248248
"busy": undefined,
@@ -277,7 +277,7 @@ exports[`debug: All Props 1`] = `
277277
<Text>
278278
Change freshness!
279279
</Text>
280-
</View_withRef>
280+
</View>
281281
<Text
282282
testID="duplicateText"
283283
>
@@ -291,15 +291,15 @@ exports[`debug: All Props 1`] = `
291291
<Text>
292292
0
293293
</Text>
294-
</View_withRef>
294+
</View>
295295
undefined"
296296
`;
297297

298298
exports[`debug: Option message 1`] = `
299299
"another custom message
300300
301301
302-
<View_withRef>
302+
<View>
303303
<Text>
304304
Is the banana fresh?
305305
</Text>
@@ -326,14 +326,14 @@ exports[`debug: Option message 1`] = `
326326
defaultValue="hello"
327327
value=""
328328
/>
329-
<View_withRef
329+
<View
330330
accessible={true}
331331
role="button"
332332
>
333333
<Text>
334334
Change freshness!
335335
</Text>
336-
</View_withRef>
336+
</View>
337337
<Text
338338
testID="duplicateText"
339339
>
@@ -347,5 +347,5 @@ exports[`debug: Option message 1`] = `
347347
<Text>
348348
0
349349
</Text>
350-
</View_withRef>"
350+
</View>"
351351
`;

src/__tests__/__snapshots__/render.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`toJSON renders host output 1`] = `
4-
<View_withRef
4+
<View
55
accessibilityState={
66
{
77
"busy": undefined,
@@ -35,5 +35,5 @@ exports[`toJSON renders host output 1`] = `
3535
<Text>
3636
press me
3737
</Text>
38-
</View_withRef>
38+
</View>
3939
`;

src/__tests__/react-native-api.test.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('React Native API assumption: <View> renders a single host element', () =>
1515
render(<View testID="test" />);
1616

1717
expect(screen.toJSON()).toMatchInlineSnapshot(`
18-
<View_withRef
18+
<View
1919
testID="test"
2020
/>
2121
`);
@@ -154,11 +154,11 @@ test('React Native API assumption: <ScrollView> renders a single host element',
154154
<RCTScrollView
155155
testID="scrollView"
156156
>
157-
<View_withRef>
158-
<View_withRef
157+
<View>
158+
<View
159159
testID="view"
160160
/>
161-
</View_withRef>
161+
</View>
162162
</RCTScrollView>
163163
`);
164164
});
@@ -193,26 +193,26 @@ test('React Native API assumption: <FlatList> renders a single host <ScrollView>
193193
testID="flatList"
194194
viewabilityConfigCallbackPairs={[]}
195195
>
196-
<View_withRef>
197-
<View_withRef
196+
<View>
197+
<View
198198
onFocusCapture={[Function]}
199199
onLayout={[Function]}
200200
style={null}
201201
>
202202
<Text>
203203
1
204204
</Text>
205-
</View_withRef>
206-
<View_withRef
205+
</View>
206+
<View
207207
onFocusCapture={[Function]}
208208
onLayout={[Function]}
209209
style={null}
210210
>
211211
<Text>
212212
2
213213
</Text>
214-
</View_withRef>
215-
</View_withRef>
214+
</View>
215+
</View>
216216
</RCTScrollView>
217217
`);
218218
});
@@ -260,7 +260,7 @@ test('React Native API assumption: aria-* props render directly on host View', (
260260
);
261261

262262
expect(screen.toJSON()).toMatchInlineSnapshot(`
263-
<View_withRef
263+
<View
264264
aria-busy={true}
265265
aria-checked={true}
266266
aria-disabled={true}

src/__tests__/render.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ test('renders options.wrapper around node', () => {
160160

161161
expect(screen.getByTestId('wrapper')).toBeTruthy();
162162
expect(screen.toJSON()).toMatchInlineSnapshot(`
163-
<View_withRef
163+
<View
164164
testID="wrapper"
165165
>
166-
<View_withRef
166+
<View
167167
testID="inner"
168168
/>
169-
</View_withRef>
169+
</View>
170170
`);
171171
});
172172

@@ -184,15 +184,15 @@ test('renders options.wrapper around updated node', () => {
184184

185185
expect(screen.getByTestId('wrapper')).toBeTruthy();
186186
expect(screen.toJSON()).toMatchInlineSnapshot(`
187-
<View_withRef
187+
<View
188188
testID="wrapper"
189189
>
190-
<View_withRef
190+
<View
191191
accessibilityHint="test"
192192
accessibilityLabel="test"
193193
testID="inner"
194194
/>
195-
</View_withRef>
195+
</View>
196196
`);
197197
});
198198

src/helpers/__tests__/format-element.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('formatElement', () => {
1313
);
1414

1515
expect(formatElement(screen.getByTestId('view'), { mapProps: null })).toMatchInlineSnapshot(`
16-
"<View_withRef
16+
"<View
1717
testID="view"
1818
/>"
1919
`);

src/helpers/__tests__/text-input.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('getTextInputValue basic test', () => {
1818

1919
const view = screen.getByTestId('view');
2020
expect(() => getTextInputValue(view)).toThrowErrorMatchingInlineSnapshot(
21-
`"Element is not a "TextInput", but it has type "View_withRef"."`,
21+
`"Element is not a "TextInput", but it has type "View"."`,
2222
);
2323
});
2424

0 commit comments

Comments
 (0)