[@types/jest-when] Including jest-when types always adds global jest types #68604
Unanswered
nickiepucel
asked this question in
Issues with a @types package
Replies: 1 comment
-
Thanks for the discussion about "jest-when", some useful links for everyone: Pinging the DT module owners: @aldentaylor, @immanuel192, @gstamac, @HipsterBrown, @boginw. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
@types/jest-when
always adds the global jest types (@types/jest
) to the TypeScriptglobal
namespace. I believe this is happening here.This makes importing
@types/jest-when
incompatible with using@jest/globals
/injectGlobals: false
because it will result in TypeScript test files compiling when they should not.Example
Assume I have installed
jest-when
,@type/jest-when
,jest
and@jest/globals
.Beta Was this translation helpful? Give feedback.
All reactions