msaisrinivas / BlinkListApp

Avoid passing children as props JS-0438
Anti-pattern
Minor
a year agoa year old
Do not pass children as props. Instead, nest children between the opening and closing tags
 2import IconButtons from ".";
 3
 4it("Check for IconButton", async()=>{
 5    render(<IconButtons children={undefined} disabled={false} onClick={function (): void { 6        throw new Error("Function not implemented.");
 7    } } ></IconButtons>);
 8    const MuiElement = screen.getByRole(/button/i);