mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
8 lines
230 B
TypeScript
8 lines
230 B
TypeScript
import { render, screen } from '@testing-library/react-native';
|
|
|
|
test('rerenders component', () => {
|
|
render(<MyComponent />);
|
|
screen.rerender(<UpdatedComponent />);
|
|
expect(screen.getByText('Updated')).toBeOnTheScreen();
|
|
});
|