From 0bc5f9ea048ec3c6490be8e8c7463806000e2d84 Mon Sep 17 00:00:00 2001 From: Rishi Raj <98014028+rajRishi22@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:18:56 +0530 Subject: [PATCH] Created index.js --- apps/generator/test/__mocks__/pacote/index.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/generator/test/__mocks__/pacote/index.js 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;