Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex pattern matches files but doesn't run any tests #47

Open
theneva opened this issue Apr 7, 2021 · 1 comment
Open

Regex pattern matches files but doesn't run any tests #47

theneva opened this issue Apr 7, 2021 · 1 comment

Comments

@theneva
Copy link

theneva commented Apr 7, 2021

Hi! 👋

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 #15 – I couldn't really get my head around that one, since the file listing makes it look like regex searches are indeed supported 😅

@crs1138
Copy link

crs1138 commented May 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants