We use the injectGlobals: false in a TypeScript project to avoid having to depend on the @types/jest library. I want to use this library to prevent unexpected console logging, but it's incompatible as it relies on the injected globals (looks like afterEach, beforeEach, and expect).
We use the
injectGlobals: false
in a TypeScript project to avoid having to depend on the@types/jest
library. I want to use this library to prevent unexpected console logging, but it's incompatible as it relies on the injected globals (looks likeafterEach
,beforeEach
, andexpect
).