Skip to content

@jest-environment node not working in v22 #5119

@evan-scott-zocdoc

Description

@evan-scott-zocdoc

Seeing this error message:

TypeError: environment.setup is not a function
      
      at node_modules/jest-runner/build/run_test.js:112:23

When using this syntax at the top of the test file (worked in v21):

/**
 * @jest-environment node
 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions