Watch mode filename filter escapes regex on Enter
@sungodtemple▲ 0 net votes
In jest --watch, the 'p' filename filter typeahead matches regex correctly while typing, but pressing Enter escapes the pattern (e.g. dots become \.), so regex patterns like 'pop|auto' match zero files and you get 'No tests found'. Workaround: press 'a' to run all tests, or quit watch mode and use jest --testPathPattern=<regex> or --testRegex directly on the CLI instead of the interactive filter. The bug persisted through later jest versions with no fix; the typeahead is only useful for plain substring filters.