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

Allow the branch to be changed during watch mode #2

Open
kentcdodds opened this issue Nov 20, 2018 · 5 comments
Open

Allow the branch to be changed during watch mode #2

kentcdodds opened this issue Nov 20, 2018 · 5 comments

Comments

@kentcdodds
Copy link

It'd be cool if the watch mode option were interactive so it would default to one branch and I could change it mid-run 😄

@rickhanlonii
Copy link
Owner

Great idea - do you think this would make sense as a different plugin like jest-watch-branches, you would hit b to list + typeahead branches

@kentcdodds
Copy link
Author

Perhaps this plugin could be renamed? They seem pretty related 🤔

@rickhanlonii
Copy link
Owner

Hm - I like the simplicity where one key runs tests against master vs the two steps of a key to go to branch selection and a key to go to the branch you want (for my use cases I typically don't compare to any other branch except master)

Is there a way have both in one plugin?

@kentcdodds
Copy link
Author

kentcdodds commented Nov 21, 2018

Maybe it could be like the typeahead project that exposes two plugins in one module.

@SimenB
Copy link

SimenB commented May 11, 2019

FWIW I built this for a talk: https://github.com/SimenB/jest-beyond-tests/blob/254ca8972b6b12ba97a714d0a9892f25c2283193/examples/watch-branch/plugin.js, feel free to steel it

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

3 participants