Skip to content

chore: RN nightly check #1795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"jest": "^30.0.2",
"prettier": "^2.8.8",
"react": "19.1.0",
"react-native": "0.80.1",
"react-native": "0.82.0-nightly-20250715-7f224941b",
"react-native-gesture-handler": "^2.27.1",
"react-test-renderer": "19.1.0",
"release-it": "^19.0.3",
Expand Down
58 changes: 29 additions & 29 deletions src/__tests__/__snapshots__/render-debug.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`debug 1`] = `
"<View>
"<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -28,14 +28,14 @@ exports[`debug 1`] = `
defaultValue="hello"
value=""
/>
<View
<View_withRef
accessible={true}
role="button"
>
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text
testID="duplicateText"
>
Expand All @@ -49,11 +49,11 @@ exports[`debug 1`] = `
<Text>
0
</Text>
</View>"
</View_withRef>"
`;

exports[`debug changing component: bananaFresh button message should now be "fresh" 1`] = `
"<View>
"<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -80,7 +80,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
defaultValue="hello"
value=""
/>
<View
<View_withRef
accessibilityState={
{
"busy": undefined,
Expand Down Expand Up @@ -115,7 +115,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text
testID="duplicateText"
>
Expand All @@ -129,19 +129,19 @@ exports[`debug changing component: bananaFresh button message should now be "fre
<Text>
0
</Text>
</View>"
</View_withRef>"
`;

exports[`debug should use debugOptions from config when no option is specified 1`] = `
"<View>
"<View_withRef>
<Text>
hello
</Text>
</View>"
</View_withRef>"
`;

exports[`debug should use given options over config debugOptions 1`] = `
"<View
"<View_withRef
style={
{
"backgroundColor": "red",
Expand All @@ -151,11 +151,11 @@ exports[`debug should use given options over config debugOptions 1`] = `
<Text>
hello
</Text>
</View>"
</View_withRef>"
`;

exports[`debug with only children prop 1`] = `
"<View>
"<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -166,11 +166,11 @@ exports[`debug with only children prop 1`] = `
<TextInput />
<TextInput />
<TextInput />
<View>
<View_withRef>
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text>
First Text
</Text>
Expand All @@ -180,11 +180,11 @@ exports[`debug with only children prop 1`] = `
<Text>
0
</Text>
</View>"
</View_withRef>"
`;

exports[`debug with only prop whose value is bananaChef 1`] = `
"<View>
"<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -197,11 +197,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
/>
<TextInput />
<TextInput />
<View>
<View_withRef>
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text>
First Text
</Text>
Expand All @@ -211,11 +211,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
<Text>
0
</Text>
</View>"
</View_withRef>"
`;

exports[`debug: All Props 1`] = `
"<View>
"<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -242,7 +242,7 @@ exports[`debug: All Props 1`] = `
defaultValue="hello"
value=""
/>
<View
<View_withRef
accessibilityState={
{
"busy": undefined,
Expand Down Expand Up @@ -277,7 +277,7 @@ exports[`debug: All Props 1`] = `
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text
testID="duplicateText"
>
Expand All @@ -291,15 +291,15 @@ exports[`debug: All Props 1`] = `
<Text>
0
</Text>
</View>
</View_withRef>
undefined"
`;

exports[`debug: Option message 1`] = `
"another custom message


<View>
<View_withRef>
<Text>
Is the banana fresh?
</Text>
Expand All @@ -326,14 +326,14 @@ exports[`debug: Option message 1`] = `
defaultValue="hello"
value=""
/>
<View
<View_withRef
accessible={true}
role="button"
>
<Text>
Change freshness!
</Text>
</View>
</View_withRef>
<Text
testID="duplicateText"
>
Expand All @@ -347,5 +347,5 @@ exports[`debug: Option message 1`] = `
<Text>
0
</Text>
</View>"
</View_withRef>"
`;
6 changes: 3 additions & 3 deletions src/__tests__/__snapshots__/render.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`toJSON renders host output 1`] = `
<View
<View_withRef
accessibilityState={
{
"busy": undefined,
Expand Down Expand Up @@ -35,5 +35,5 @@ exports[`toJSON renders host output 1`] = `
<Text>
press me
</Text>
</View>
</View_withRef>
`;
22 changes: 11 additions & 11 deletions src/__tests__/react-native-api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('React Native API assumption: <View> renders a single host element', () =>
render(<View testID="test" />);

expect(screen.toJSON()).toMatchInlineSnapshot(`
<View
<View_withRef
testID="test"
/>
`);
Expand Down Expand Up @@ -154,11 +154,11 @@ test('React Native API assumption: <ScrollView> renders a single host element',
<RCTScrollView
testID="scrollView"
>
<View>
<View
<View_withRef>
<View_withRef
testID="view"
/>
</View>
</View_withRef>
</RCTScrollView>
`);
});
Expand Down Expand Up @@ -193,26 +193,26 @@ test('React Native API assumption: <FlatList> renders a single host <ScrollView>
testID="flatList"
viewabilityConfigCallbackPairs={[]}
>
<View>
<View
<View_withRef>
<View_withRef
onFocusCapture={[Function]}
onLayout={[Function]}
style={null}
>
<Text>
1
</Text>
</View>
<View
</View_withRef>
<View_withRef
onFocusCapture={[Function]}
onLayout={[Function]}
style={null}
>
<Text>
2
</Text>
</View>
</View>
</View_withRef>
</View_withRef>
</RCTScrollView>
`);
});
Expand Down Expand Up @@ -260,7 +260,7 @@ test('React Native API assumption: aria-* props render directly on host View', (
);

expect(screen.toJSON()).toMatchInlineSnapshot(`
<View
<View_withRef
aria-busy={true}
aria-checked={true}
aria-disabled={true}
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/render.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ test('renders options.wrapper around node', () => {

expect(screen.getByTestId('wrapper')).toBeTruthy();
expect(screen.toJSON()).toMatchInlineSnapshot(`
<View
<View_withRef
testID="wrapper"
>
<View
<View_withRef
testID="inner"
/>
</View>
</View_withRef>
`);
});

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

expect(screen.getByTestId('wrapper')).toBeTruthy();
expect(screen.toJSON()).toMatchInlineSnapshot(`
<View
<View_withRef
testID="wrapper"
>
<View
<View_withRef
accessibilityHint="test"
accessibilityLabel="test"
testID="inner"
/>
</View>
</View_withRef>
`);
});

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__tests__/format-element.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('formatElement', () => {
);

expect(formatElement(screen.getByTestId('view'), { mapProps: null })).toMatchInlineSnapshot(`
"<View
"<View_withRef
testID="view"
/>"
`);
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/__tests__/text-input.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('getTextInputValue basic test', () => {

const view = screen.getByTestId('view');
expect(() => getTextInputValue(view)).toThrowErrorMatchingInlineSnapshot(
`"Element is not a "TextInput", but it has type "View"."`,
`"Element is not a "TextInput", but it has type "View_withRef"."`,
);
});

Expand Down
Loading
Loading