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

"Typeahead" for test selection in watch mode. #2251

Closed
cpojer opened this issue Dec 7, 2016 · 5 comments
Closed

"Typeahead" for test selection in watch mode. #2251

cpojer opened this issue Dec 7, 2016 · 5 comments

Comments

@cpojer
Copy link
Member

cpojer commented Dec 7, 2016

Right now when pressing "p" to select a test, we don't give any feedback for which tests are available. It would be great if we could give live feedback:

"pattern > conf"
"3 matches"

"pattern > config-normalize"
"1 match: path/to/config-normalize-test.js"

I think this would be pretty cool and helpful on large codebases when trying to figure out the name of a test file.

The data should be available on "SearchSource" and this may be easier to accomplish once we do the following:

  • Split jest's watch feature into a separate package and refactor it.
  • Use jest-haste-map's file watching feature

With an in memory haste map, we'll be able to query for tests every time the user types something.

@rogeliog
Copy link
Contributor

If possible, I would love to help out with this 😄

@cpojer
Copy link
Member Author

cpojer commented Dec 14, 2016

@rogeliog please join us on discord, see: http://facebook.github.io/jest/support.html

@rogeliog
Copy link
Contributor

@cpojer awesome, just did :)

@cpojer
Copy link
Member Author

cpojer commented Dec 14, 2016

Let's continue the discussion in the PR, closing this issue. Thanks for working on it!

@cpojer cpojer closed this as completed Dec 14, 2016
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants