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
Uh oh!
There was an error while loading. Please reload this page.
-
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:

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