(<jest.Mock>fs.readdirSync).mockReturnValue(...); It becomes tedious work to do this everytime you use mocked functions imported from the fs module.
確定! 回上一頁