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
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
Jest supports the injectGlobals option that disables the injections of the variables (jest, describe, expect etc.) into the global, once you disable this, the autogenerated Nestjs file doesn't work anymore
Describe the solution you'd like
We should add this line to the generated file:
import { beforeEach, describe, expect, it } from '@jest/globals';
This is going to work in any situation, with or without the injectGlobals
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Jest supports the
injectGlobals
option that disables the injections of the variables (jest, describe, expect etc.) into the global, once you disable this, the autogenerated Nestjs file doesn't work anymoreDescribe the solution you'd like
We should add this line to the generated file:
import { beforeEach, describe, expect, it } from '@jest/globals';
This is going to work in any situation, with or without the injectGlobals
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
We want to make sure that NestJS is compatible with the new versions of the tools its using
The text was updated successfully, but these errors were encountered: