-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[Feature]: Add --skipToInteractive command #12236
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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. |
🚀 Feature Proposal
When running jest with
--watch
argument all test that changed since last commit are run. I would like to skip this initial step and go straight to interactive. A proposed name for the argument could be.--skipToInteractive
--skipWatchTest
(more specific to watch command)Motivation
I use regex match filename and test name options in the
--watch
interactive menu coupled with using the jest type head watch plugin. This is a nice workflow for me and the juniors I'm mentoring. It's great to get to the point and lean on tools that make development easier rather than wait for an initial test pass to execute then we use the interactive watch menu.Fig 1. Use of regex match with typehead
My current work around is supplying a fake test dir and this works fine but the file filter needs to be cleared or replaced when in the interactive mode. If I supply somebody else with my workaround it could be confusing depending on skill level. The workaround command is like
jest --watch fakedir
.Fig 2. Workaround output
Example
jest --watch --skipToInteractive
jest --watch --skipWatchTest
This flag only really makes sense in combination with the
--watch
command. The--watchAll
command implies that the user wants to run all test anyway.Pitch
This feature will let users get straight to a core productivity tool
interactive jest menu
. For me this would be a great workflow improvement and I think it makes sense to have access to a feature without having a prerequisite step first of running some tests.The text was updated successfully, but these errors were encountered: