For that we can use a trigger of the wrapper component, and a jest spy using spyOn function: it("calls handleClick when click on message", () => ...
確定! 回上一頁