Hi I am writing a code which triggers an action inside a useEffect hook. It is something like this:
useEffect(() => {
if (error && vehicle && onInstallError) {
onInstallError({
action: "validateTireSize",
message: "find tires that fit",
warranty: planSkuName,
vehicle: `${vehicle.year}|${vehicle.make}|${vehicle.model}`
});
}
}, [error, onInstallError, vehicle, planSkuName]);
Now I need to write unit test in Enzyme for it to have 100% code coverage. Could someone help me in this