Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleCheckableInput = async (input: HTMLInputElement) => {
input.checked = !input.checked;
await fireEvent.input(input);
await fireEvent.change(input);
}