You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't find anything in the README about the intended use for @jest/types. I can see that some of the packages directly reference it, but the package behaves differently to the community @types/jest package. It doesn't appear to add any global type declarations. This leaves me with two questions:
Is @jest/types meant to be a drop-in replacement for @types/jest, or is it only used internally in the Jest monorepo?
If @jest/types is meant to replace @types/jest, are there any usage examples (outside of the Jest monorepo, ideally) that you can point me to?
Thanks in advance! 🙂
The text was updated successfully, but these errors were encountered:
@jest/types are for the shared types of Jest's packages - useful if building an integration with Jest itself or one of its modules.
@types/jest will stick Jest's globals into your environment. We have no plans to replace that, although I wanna simplify it a bit, see DefinitelyTyped/DefinitelyTyped#44365.
We should be better at adding readmes to all our packages 😬 Most of them exist to reduce the cognitive overhead of working with the internals, and not necessarily for outside consumption. Readmes would clarify that
This issue 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.
Couldn't find anything in the README about the intended use for
@jest/types
. I can see that some of the packages directly reference it, but the package behaves differently to the community@types/jest
package. It doesn't appear to add any global type declarations. This leaves me with two questions:@jest/types
meant to be a drop-in replacement for@types/jest
, or is it only used internally in the Jest monorepo?@jest/types
is meant to replace@types/jest
, are there any usage examples (outside of the Jest monorepo, ideally) that you can point me to?Thanks in advance! 🙂
The text was updated successfully, but these errors were encountered: