I had a similar issue which was resolved by calling the event.preventDefault()
method.
This would need to be called in your ‘onSubmit’ function i think
const onSubmit = jest.fn(e => e.preventDefault());
edit: woops forgot to invoke it! 😅
I had a similar issue which was resolved by calling the event.preventDefault()
method.
This would need to be called in your ‘onSubmit’ function i think
const onSubmit = jest.fn(e => e.preventDefault());
edit: woops forgot to invoke it! 😅