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

docs: rework Type Definitions section in Getting Started guide #13133

Merged
merged 1 commit into from
Aug 15, 2022
Merged

docs: rework Type Definitions section in Getting Started guide #13133

merged 1 commit into from
Aug 15, 2022

Conversation

mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Aug 14, 2022

Summary

Built-in types improved a lot recently. Users should judge, of course. In my opinion, the built-in types of jest.fn(), .each and also jest.Mocked / jest.mocked() are better than the ones shipped in @types/jest. Also both implementations are more or less equal in features.

Perhaps it’s a good idea to promote the built-in types in the Getting Started guide alongside with @types/jest? More usage might bring more feedback and a chance to make the types even better ;D

Test plan

Deploy preview.

@mrazauskas mrazauskas changed the title docs: rewo getting started with TS docs: rework getting started with TS chapter Aug 14, 2022
@mrazauskas mrazauskas marked this pull request as ready for review August 14, 2022 12:26
@mrazauskas mrazauskas changed the title docs: rework getting started with TS chapter docs: rework Type Definitions section in Getting Started guide Aug 14, 2022
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.

I like it!

@SimenB SimenB merged commit e8fc802 into jestjs:main Aug 15, 2022
@mrazauskas mrazauskas deleted the chore-docs-getting-startted-with-ts branch August 15, 2022 11:12
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants