Run jest test from editor doesn't find tests: path in --testPathPattern has backslashes and hyphens escaped

WebStorm/PHPStorm 2017.03 + Windows 10 + Jest 22.0.4

When I want to run specific tests from the editor the test runner is called with --testPathPattern and --testNamePattern arguments.

The name pattern is fine but the path pattern includes escaped backslashes and hyphens, e.g. ^C:\\projects\\my\-custom\-project\\tests\\components\\component\.test\.js$

When I remove the escaping before backslahes, hyphens (and dots) it works, e.g. ^C:\projects\my-custom-project\tests\components\component.test.js$ 




Please sign in to leave a comment.