How To Mock A React Component In Jest | Rob Marshall
How To Mock A React Component In Jest | Rob Marshall
react componentのモックの仕方
code:ts
jest.mock("./ManyModals", () => ({
Modal: () => {
return <mock-modal data-testid="modal"/>;
},
}));