To experiment with your first spy, create a test for the logging capability, and spy on the logger.logInfo function by using jest.spyOn.
確定! 回上一頁