jest-watch-typeahead icon indicating copy to clipboard operation
jest-watch-typeahead copied to clipboard

Regex pattern matches files but doesn't run any tests

Open theneva opened this issue 3 years ago • 2 comments

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:

demo

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 😅

theneva avatar Apr 07 '21 10:04 theneva

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

crs1138 avatar May 05 '23 06:05 crs1138