ReferenceError: window is not defined #2670
cvasquez32
started this conversation in
General
Replies: 1 comment 6 replies
-
Jest 27 default testEnvironment is node, you need to switch manually to jsdom |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After updating ts-jest from v26.5.6 to 27.0.3 all of our jest test started failing with the following error:
Any idea why this is happening? it was working fine before on version v26.5.6, the current value for testEnvironment is set to 'node'
Beta Was this translation helpful? Give feedback.
All reactions