I have the following Yup validation schema :
Yup
photo: Yup.mixed() .test( "fileFormat", " [Incorrect file tye]",