The mock function will receive a number (the error code) as argument like the original exit function. const mockExit = jest.spyOn(process, 'exit ...
確定! 回上一頁