jest-watch-typeahead
jest-watch-typeahead copied to clipboard
Regex pattern matches files but doesn't run any tests
Hi! :wave:
When I enter file pattern mode (p
) and enter a regex (for example, .*
), the matching files are shown. When I hit return, however, no tests are found.
Here's a quick demo where entering src
works, but .*
doesn't, even though the file src/__tests__/test.js
is listed for both searches:
I made the simplest reproduction I could think of at https://github.com/theneva/jest-watch-typeahead-regex, which is how I made the demo.
Am I missing something, or is this a bug?
This is possibly related to https://github.com/jest-community/jest-watch-typeahead/issues/15 – I couldn't really get my head around that one, since the file listing makes it look like regex searches are indeed supported 😅
I've got exactly the same problem as the OP. I'd just add that the regex characters end up escaped when I return to the watch menu.