In Jest, you can use the jest.genMockFromModule('fs') method to get the general layout of the module and change its methods. But if I try to run this for a file, i.e. "../app/helper.js" , he says he cannot find the module.
Is this method intended only to search for modules? If so, is it possible to find a common file layout?
source share