Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use it in Vitest #330

Open
wangjunxian opened this issue Jun 13, 2023 · 0 comments
Open

how to use it in Vitest #330

wangjunxian opened this issue Jun 13, 2023 · 0 comments

Comments

@wangjunxian
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant