Skip to content
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

Update type definitions to allow optional types #339

Merged
merged 2 commits into from
Oct 6, 2021
Merged

Update type definitions to allow optional types #339

merged 2 commits into from
Oct 6, 2021

Conversation

AllySummers
Copy link
Contributor

@AllySummers AllySummers commented Aug 23, 2021

What

Add optional generics to some matchers similar to how @types/jest package allows for .toStrictEqual (among others) https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jest/index.d.ts#L1016

Why

Allow more strictly typed code when creating tests with Jest

Notes

Housekeeping

  • Unit tests
  • Documentation is up to date
  • No additional lint warnings
  • Typescript definitions are added/updated where relevant

(None of above relevant as far as I know?)

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit a92353f into jest-community:main Oct 6, 2021
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