Skip to content

Windows - path case sensitivity #4644

@peterdanis

Description

@peterdanis

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Running jest -o and jest --watch in the same directory, but with different lower/upper case letters in preceding path to the folder produces different outcomes.

Correct full path is D:\Projects\Temp\my-js-learning

Outcome:

  • with correct path Jest picks up changed file
  • with an incorrect case in working dir - Jest picks up changed file
    (D:\Projects\Temp\My-js-learning)
  • with an incorrect lower/uppec case letter in any dir preceding working dir - Jest does not pick up changed file
    (D:\ProjectS\Temp\my-js-learning)
    (D:\Projects\temp\my-js-learning)
    (D:\projects\Temp\my-js-learning)

image

Same issue on second Windows machine:

  • C:\users... and C:\Users...
    image

What is the expected behavior?
Preceding path should be case-insensitive on Windows.

Tested on two machines. Both in cmd and in powershell.
First:

  • Jest: 21.0.1
  • Windows: 10.0.15063
  • Git: 2.14.1.windows.1
  • Node: v8.6.0
  • Yarn: 1.1.0

Second:

  • Jest: v21.2.1
  • Windows: 6.1.7601
  • Git: 2.14.1.windows.1
  • Node: v6.11.3 and v8.6.0
  • Yarn: 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions