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

[Feature]: Add --skipToInteractive command #12236

Closed
IhsanMujdeci opened this issue Jan 13, 2022 · 4 comments
Closed

[Feature]: Add --skipToInteractive command #12236

IhsanMujdeci opened this issue Jan 13, 2022 · 4 comments

Comments

@IhsanMujdeci
Copy link

IhsanMujdeci commented Jan 13, 2022

🚀 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.

image
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.

image
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.

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@github-actions
Copy link

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.

@github-actions
Copy link

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.

@github-actions
Copy link

github-actions bot commented May 6, 2022

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 6, 2022
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

1 participant