-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
jest tests are not working anymore with vee-validate 2.1.0-beta.4 #1432
Comments
Currently, there is an issue with vue-test-utils > 1.0.0-beta.12, they always fail for vee-validate due to the async behavior being forced to sync. continue the discussion in #1267 Your project works fine if you downgrade to test-utils@1.0.0-beta.12 |
Thanks for the information. :-) |
I had the same issue. Downgrading vue-test-utils did not work. I had to downgrade vee-validate to 2.0.9 to make it work. |
Have the same issue and @logaretm's suggestion to downgrade seemed to have done the trick. |
@logaretm do you keep us up to date? I wanted to update to vee-validate version |
I'm using mocha, but I'm seeing the same issue on my end. I've tried the solutions suggested above, including downgrading vee-validate, but I'm not making any progress. I have a suspicion that the root $el is not being mounted correctly. That, or the vee-validate checks for $el aren't working when using vue-test-utils localVue. Has anyone else had any luck getting this to work? I'm this close to finding another validation library just so I can get my unit tests to work. |
Facing the same problem and I had to downgrade the vue-test-utils to beta.12 (which brings some other problems back). So we're now at beta.29 of vue-test-utils. What's the current correct fix to this? Is that something on vee-validate side or something on vue-test-utils side? Because I found threads on both ends. As |
@renestalder vue-test-utils plan to remove the sync rendering in future versions since Vue 3.x will not support that. with that in mind, vue-test-utils doesn't play well with async stuff, watchers, UI updates, etc... are all async in real-world, so a lot of issues will come out of any tool that will employ that fact since vee-validate is template based, it relies on that a lot. For example, the directive tests fail because Once a stable release is tagged I will review the tests, and see if there is an issue on The only good news I have is that |
Versions
Describe the bug
After installing 2.1.0-beta.4 jest tests are not working anymore that are using vee-validate.
Reverted back to 2.1.0-beta.2 everything is working.
To Reproduce
Steps to reproduce the behavior:
npm i
npm test
Expected behavior
Demo Link
https://codesandbox.io/s/p37x443wmx
The text was updated successfully, but these errors were encountered: