Replies: 1 comment 2 replies
-
did you get a chance to check out #686? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently struggle, why vscode isn't suggesting to import some methods from
@jest/globals
.It works for
beforeEach
but not fortest
orit
It also works when simply typing
test
Scenario
We have a
nx
angular workspace with jest and need to runjest
inESM
mode.In that mode not all
jest
variables are globally available and needs to be imported via@jest/globals
. So we explicit removed@types/jest
fromtsconfig.json
, so we don't suggest to use the globals.You can see in screenshots above, that it works fine for
beforeEach
but not forit
ortest
functions.Beta Was this translation helpful? Give feedback.
All reactions