diff --git a/apps/generator/test/__mocks__/pacote/index.js b/apps/generator/test/__mocks__/pacote/index.js new file mode 100644 index 000000000..c2b9fa4b0 --- /dev/null +++ b/apps/generator/test/__mocks__/pacote/index.js @@ -0,0 +1,7 @@ +const pacote=jest.genMockFromModule('pacote'); +pacote.manifest=jest.fn(async (templateName)=>{ + return{ + name:'test' + }; +}); +module.exports=pacote;