Пробовали так?
const emailFieldValidationScheme = Yup.string()
.required('Required')
.email('Invalid email address');
const ValidationScheme = Yup.object().shape({
email: emailFieldValidationScheme,
password: Yup.string()
.required('Required'),
code: Yup.number()
.integer()
.positive()
.typeError('You must specify a number')
.required('Required'),
});
emailFieldValidationScheme.validateSync('test');