So, check out the following code: const warn = jest.spyOn(console, "warn").mockImplementation(() => {});. Notice the mockImplementation .
確定! 回上一頁