Closed
Description
Version
1.0.0-beta.20
Reproduction link
https://github.com/ParsonsProjects/vue-cli-sandbox/tree/jest-vuelidate
Steps to reproduce
RUN npm install
RUN npm run test:unit
THEN a warning will be thrown in the test results.
What is expected?
WHEN i run npm run test:unit
THEN no error is thrown by vuelidate
What is actually happening?
WHEN i run npm run test:unit
THEN the error is being thrown by vuelidate
This error is only being thrown when running the unit tests and not when running npm run serve
which might be something to do with how the lifecycle of data is being handled when running tests. I am not 100% sure about this.
When I was trying to debug the issue it looked like the new item was not being added to the array before vuelidate was looking for the new item.
Any help would be greatly appreciated. Thanks