-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Bring back typeahead as a watch-mode plugin #4931
Comments
Please search this issue tracker more thoroughly and you’ll find that this feature has been temporarily disabled because of license migration to MIT. We’re working on watch more plugin system to make it work again. |
@thymikee thanks for explanation |
I had searched but found no results. @thymikee can you please provide ticket number, so I can follow, when functionality will be returned back? |
We're not currently tracking this issue. |
Help from the community would be greatly appreciated here. You can use the pluggable interface introduced in #4841. The plugin would be separate from the core Jest repo, but we would love to link to it (and probably host it in https://github.com/jest-community/). |
Hey @SimenB I've just been taking a look into this and at the new watch mode pluggable interface. I'm not sure how a separate plugin would be able to implement the old typeahead functionality without re-implementing a lot of Jest's internals. The previous implementation depended on the SearchSources type (amongst other things) which seems to be derived from the type SearchSources = Array<{|
context: Context,
searchSource: SearchSource
|}>; Currently a watch mode plugin only receives the I'm happy to spend some time to get this working but perhaps I am missing something obvious 😆 any help you can offer on explaining the approach to building this would be greatly appreciated 😄 |
Hey! Yeah I think a lot of stuff would need to change in order to support this. I'll work on trying to get the infrastructure to a point where it supports the plugins and hopefully make it easier to figure out what's needed to bring the typeahead back |
For those following along: #5399 |
I would just like to say that this was my favorite feature in jest; gonna rollback until it is re-introduced. |
Available as of Jest 23. https://github.com/jest-community/jest-watch-typeahead (still somewhat experimental, but I was unable to break it when testing it last night. Bug reports (and fixes) welcome!) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I tried to reinstall jest many times, tried to run it in
no-cache
mode.I'm running jest:
jest --watch ./assets --notify
Config:
And no any results are displayed, unlike it was using version 20. But if I push enter the pattern will be applied and files will be found successfully.
The text was updated successfully, but these errors were encountered: