Skip to content

fix(index.d.ts): Use jest.CustomMatcher type for toMatchDiffSnapshot #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2018
Merged

fix(index.d.ts): Use jest.CustomMatcher type for toMatchDiffSnapshot #61

merged 1 commit into from
Dec 27, 2018

Conversation

avocadowastaken
Copy link
Contributor

Currently expect.extend({ toMatchDiffSnapshot }); throws:

TS2322: Type '(newObject: any) => void' is not assignable to type 'CustomMatcher'.
Type 'void' is not assignable to type 'CustomMatcherResult | Promise<CustomMatcherResult>'.

@thymikee thymikee merged commit eb61723 into jest-community:master Dec 27, 2018
@avocadowastaken avocadowastaken deleted the patch-1 branch December 27, 2018 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants