Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Automatic lib publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-bao committed Mar 9, 2022
1 parent 6fbfb24 commit 632c370
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ export * from "./modules/clickTest.utils";
export * from "./modules/disableLocation.utils";
export * from "./modules/get.utils";
export * from "./modules/automatedTest.utils";
export * from "./modules/mock.component"
12 changes: 12 additions & 0 deletions src/modules/mock.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";

function Mock({children}){
return <div>{children}</div>
}

export function mockComponent(jest, libraryName:string,componentName:string){
throw new Error('not working')
let componentMap = {};
componentMap[componentName] = Mock;
jest.mock(libraryName, ()=>componentMap);
}

0 comments on commit 632c370

Please sign in to comment.