const { getByTestId, rerender } = render(Component, { props: { componentProp: 'some text', }, }); // updating props await rerender({ componentProp: 'another text', });