Skip to content

Commit 6b0ac90

Browse files
committed
chore: flow types
1 parent 5bec505 commit 6b0ac90

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/__tests__/render.breaking.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ test('returns host root', () => {
219219
expect(root.props.testID).toBe('inner');
220220
});
221221

222-
test('returns UNSAFE_root', () => {
222+
test('returns composite UNSAFE_root', () => {
223223
const { UNSAFE_root } = render(<View testID="inner" />);
224224

225225
expect(UNSAFE_root).toBeDefined();

typings/index.flow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ declare module '@testing-library/react-native' {
436436
unmount(nextElement?: React.Element<any>): void;
437437
toJSON(): ReactTestRendererJSON[] | ReactTestRendererJSON | null;
438438
debug: Debug;
439+
root: ReactTestInstance;
440+
UNSAFE_root: ReactTestInstance;
439441
container: ReactTestInstance;
440442
}
441443

0 commit comments

Comments
 (0)