Skip to content

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

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'

Activity

  1. dinukadesilva commented on Jan 20, 2017

    @dinukadesilva
    ContributorAuthor

    I just tried removing all the and backslashes from all the places, and then it worked. But, do any of you have any thoughts on which should be the correct way to get this solved.

  2. modified the milestones: , 0.9.1 on Feb 11, 2017
  3. added 2 commits that reference this issue on Feb 24, 2017
    b609ac9
    913679b
  4. gaearon commented on Feb 26, 2017

    @gaearon
    Contributor

    This should be fixed in 0.9.2, please verify!

  5. added a commit that references this issue on Mar 2, 2017
    c933f52
  6. added a commit that references this issue on Mar 7, 2017
    e084abe
  7. added a commit that references this issue on May 8, 2017
    cf5238a
  8. added a commit that references this issue on May 16, 2017
    7a11edd
  9. locked and limited conversation to collaborators on Jan 22, 2019
  10. added a commit that references this issue on Feb 24, 2019
    9929d7c
  11. added a commit that references this issue on Oct 8, 2024
    7d04c91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions