Skip to content

Commit

Permalink
fix: declare jest-mock-props module
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Jan 11, 2020
1 parent fdbdc63 commit 80cf495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/@types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ declare namespace jest {
const spyOnProp: (object: AnyObject, propName: string) => MockProp;
}

declare const extend: (jestInstance: typeof jest) => void;
declare module 'jest-mock-props' {
const extend: (jestInstance: typeof jest) => void;
}
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const configuration: Configuration = {
path: path.resolve(__dirname, "lib"),
},
plugins: [
new CopyPlugin(["package.json"]),
new CopyPlugin(["package.json", "README.md"]),
new CopyPlugin([{ from: "src/@types/index.d.ts", to: "main.d.ts" }]),
],
resolve: {
Expand Down

0 comments on commit 80cf495

Please sign in to comment.