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

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

@purumpum

Description

@purumpum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions