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

jest: Provides its own types #39666

Closed

Conversation

a-tarasyuk
Copy link
Contributor

And comment PR: This will deprecate @types/jest in favor of just jest. CC @NoHomey, @jwbay, @asvetliakov, @alexjoverm, @epicallan, @ikatyang, @wsmd, @JamieMason, @douglasduteil, @ahnpnl, @JoshuaKGoldberg, @UselessPickles, @r3nya, @Hotell, @sebald, @andys8, @antoinebrault, @favna, @gstamac, @ExE-Boss, @quassnoi, @Belco90
WARNING: other packages depend on this!

Copy link
Contributor

@favna favna left a comment

Choose a reason for hiding this comment

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

Jests' own typings are extremely lacking. in the Jest package it only has:

import * as cli from 'jest-cli';
export = cli;

And in jest-cli then: https://cdn.jsdelivr.net/npm/jest-cli@24.9.0/build/index.d.ts

As you can see these are only the cli typings and are far, far, faar from enough. Therefore @types/jest cannot be deprecated unless Facebook developers fix up their typings to include all the required data.

@typescript-bot typescript-bot added this to Needs Author Attention in Pull Request Status Board Oct 26, 2019
@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). The Travis CI build failed Revision needed This PR needs code changes before it can be merged. labels Oct 26, 2019
@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 26, 2019

@a-tarasyuk Thank you for submitting this PR!

🔔 @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @JoshuaKGoldberg @UselessPickles @r3nya @Hotell @sebald @andys8 @antoinebrault @favna @gstamac @ExE-Boss @quassnoi @Belco90 @tonyhallett @ycmjason - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 26, 2019

@a-tarasyuk The Travis CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Copy link
Contributor

@ExE-Boss ExE-Boss left a comment

Choose a reason for hiding this comment

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

I agree with @favna.

@a-tarasyuk
Copy link
Contributor Author

cc @sandersn Jest

Copy link
Contributor

@wsmd wsmd left a comment

Choose a reason for hiding this comment

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

Jest codebase was indeed migrated to typescript, but this migration doesn't mean that it's ready to replace @types/jest. Consumers of Jest still need to use @types/jest at least for the time being.

Per jestjs/jest#7807

It is currently a non-goal to distribute TS types for using Jest - that is excellently handled in @types/jest already. At some point we might want to distribute that with jest as well - but that's a separate issue.

@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 29, 2019
@typescript-bot
Copy link
Contributor

@a-tarasyuk I haven't seen anything from you in a while and this PR currently has problems that prevent it from being merged. The PR will be closed tomorrow if there aren't new commits to fix the issues.

@favna
Copy link
Contributor

favna commented Nov 1, 2019

This should be closed as per comments above.

@typescript-bot typescript-bot added the Abandoned This PR had no activity for a long time, and is considered abandoned label Nov 2, 2019
@typescript-bot
Copy link
Contributor

@a-tarasyuk To keep things tidy, we have to close PRs that aren't mergeable but don't have activity from their author. No worries, though - please open a new PR if you'd like to continue with this change. Thank you!

Pull Request Status Board automation moved this from Needs Author Attention to Done Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abandoned This PR had no activity for a long time, and is considered abandoned Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. Popular package This PR affects a popular package (as counted by NPM download counts). Revision needed This PR needs code changes before it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants