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
jest: Provides its own types #39666
Conversation
There was a problem hiding this 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.
@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 If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
@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! |
There was a problem hiding this 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.
There was a problem hiding this 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.
@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. |
This should be closed as per comments above. |
@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! |
And comment PR: This will deprecate
@types/jest
in favor of justjest
. CC @NoHomey, @jwbay, @asvetliakov, @alexjoverm, @epicallan, @ikatyang, @wsmd, @JamieMason, @douglasduteil, @ahnpnl, @JoshuaKGoldberg, @UselessPickles, @r3nya, @Hotell, @sebald, @andys8, @antoinebrault, @favna, @gstamac, @ExE-Boss, @quassnoi, @Belco90WARNING: other packages depend on this!