I'm new to unit-testing and writing test cases using jest and enzyme in React. Can someone please help me to write the test case for this example?
const [open, setOpen] = useState(false);
const handleClose = () => {
setOpen(!open);
}
//this handleClose is an onClick event
Top comments (0)