the prupose is to check only things that module (or component) is responsible of
example: if you have a toggle component like here:
code:
export function Toggle() {
return (
<label className="switch" role="toggle">
<input type="checkbox" role="hidden-input" />
<span className="slider round" />
</label>
);
}
the answer is "yes", and this is exactly the thing you need to test:
No comments:
Post a Comment