Mocking ES Modules ... First, to mock a component you use jest.mock("path/to/RealComponent") . You can specify an mock implementation inline like ...
確定! 回上一頁