Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Globals do not resolved when run on Node v. 10 #2

Closed
purumpum opened this issue Jan 29, 2020 · 1 comment
Closed

Globals do not resolved when run on Node v. 10 #2

purumpum opened this issue Jan 29, 2020 · 1 comment

Comments

@purumpum
Copy link

I experienced following errors when run my tests on Node v. 10.13.0: ReferenceError: window is not defined and ReferenceError: describe is not defined. It is the same errors as for jest-environment-node described in jestjs/jest#9453, but I think it is worth to mention this issue here.

This behavior introduced with implementation of getVmContext() method and does not affect jest-environment-jsdom. It it caused by a bug in old versions of Node nodejs/node#23206 and fixed in Node v. 10.14.2.

@SimenB SimenB closed this as completed in aa7aeb6 Feb 8, 2020
@SimenB
Copy link
Owner

SimenB commented Feb 8, 2020

Sorry, somehow missed this issue... "Fixed" by specifying a fixed node version in the engines field

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants