You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, a Vue component test using VeeValidate raise errors with exit code 3221225725. I'm wondering if this is misuse of vee-validate in unit test or vee-valdiate issue.
Make sure to use sync: false in mounting/shallowMounting options when testing with vee-validate, vee-validate relies heavily on asynchronous rendering, so it wouldn't play nice with vue-test-utils synchronous behavior until vuejs/vue-test-utils#1062 is merged.
Bonus tip: use flush-promises after triggering validation (via model change or event dispatch or test-utils trigger helper), since validation happens asynchronously.
Versions
Describe the bug
On Windows, a Vue component test using VeeValidate raise errors with exit code 3221225725. I'm wondering if this is misuse of vee-validate in unit test or vee-valdiate issue.
My test code is:
To reproduce
https://github.com/ryo-utsunomiya/poc-vee-validate-stack-overflow
This repository contains a sample Vue application with vee-validate, mocha and vue-test-utils.
You can reproduce the problem with following commands:
git clone https://github.com/ryo-utsunomiya/poc-vee-validate-stack-overflow
cd poc-vee-validate-stack-overflow
yarn install
yarn test:unit
When I run
yarn test:unit
on my Windows PowerShell, console output looks like this:Expected behavior
The test passes without warnings/errors.
The text was updated successfully, but these errors were encountered: