I have a simple form component for submitting a string where the submit button is disabled until a captcha is successfully completed by the user. The button's "disabled" property value is set via useState, and the useState itself is set to true/false via an onChange handler attached to the ReCAPTCHA element.
I've managed to figure out how to mock the state via React.useState, but I can't wrap my head around triggering that jest state in a way that accurately imitates the captcha being completed.