Como obter o valor de datepicker no react

expect(screen.getByDisplayValue('01/01/2022')).toBeInTheDocument();
Courageous Caracal