Replies: 1 comment 2 replies
-
since this is unit tests, I would simple Mock the vee-validate and useForm, to not end up testing vee-validate, which definitely you dont want to do. you could use jest.mock for that purpuse. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to test my custom input component. But I don't know how to do it right, because I didn't find any info how to test it.
The only thing I found was from this Mocking Form and Field Contexts
My custom component:
My test file:
This test works correctly, but there are warnings in the console:
![image](https://user-images.githubusercontent.com/62945820/197282794-1faf9e50-021f-4f78-b0bc-c0c2b1213ea1.png)
Please tell me if this test is written correctly and how can I get rid of warnings or is this normal?
Beta Was this translation helpful? Give feedback.
All reactions