Skip to content

Breaking change in --testPathPattern #5216

@butchyyyy

Description

@butchyyyy

Since Jest 22 the fix of #3793 via #5054 breaks all tooling that already passed escaped path separator in the argument (e.g. IntelliJ IDEA / WebStorm Jest test runner).

The documentation states "--testPathPattern=<regex>", so the previous behaviour was imho correct. The argument accepts regex and it's up to the user to correctly escape the string (including windows path separator).

If the change of behaviour was intentional, it should be at the very least mentioned in the version 22 release notes / migration guide from previous version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions