jest-fail-on-console icon indicating copy to clipboard operation
jest-fail-on-console copied to clipboard

Incompatible with Jest's injectGlobals: false

Open thewilkybarkid opened this issue 2 years ago • 1 comments

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).

thewilkybarkid avatar Jul 28 '23 08:07 thewilkybarkid

I see, would you like to make a PR to use @jest/globals ?

ValentinH avatar Jul 28 '23 09:07 ValentinH