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.
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.