Skip to content

Jest does not validate <rootDir> reference in some environments #1417

Closed
@dinukadesilva

Description

@dinukadesilva

In the generated project, When I run npm run test in a Jenkins box, the following reference was failing. And it seems that Jest does not validate the resultant URL.

"setupFiles": [ "<rootDir>\\config\\polyfills.js" ]

some environments return
'/var/lib/jenkins/jobs/test/workspace/\config\polyfills.js'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions