async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

how to use it in Vitest

Open wangjunxian opened this issue 1 year ago • 0 comments

用Vitest进行测试. 由于使用了asyncValidator中的定义. { validator: inputCheck, trigger: 'click' } 测试代码执行时formEl.validate((valid, fields) 中取不到fields. 不知道应该如何在Vitest中配置才能正常执行验证部分的代码.

wangjunxian avatar Jun 13 '23 06:06 wangjunxian