How to test (vitest) that a form’s submit button is disabled while submitting
I have the following test (modelled after this: https://github.com/orgs/react-hook-form/discussions/8866):
I have the following test (modelled after this: https://github.com/orgs/react-hook-form/discussions/8866):