nx-console
nx-console copied to clipboard
affected / run-many watch flag to match run's watch flag
Description
Currently nx console allows me to run unit tests with the ability to change the watch boolean flag by way of the set flags menu prompt before the command is executed. I would like to also be able to set the watch boolean flag when using affected test and run-many tests. I know this can be done becuase running the commands in the console does work.
For example: npx nx affected --target=test --watch=true
Motivation
We have many developers that like to click through the menus from nx console to run the commands rather than remember all the possible command combinations and type them out through the terminal. That seems to be the point of using nx console to begin with. This seems like a feature that it should have.
Suggested Implementation
I would like to be able to select and set the "watch" flag from the nx console menu "execute command or set flags" that comes up after I select the 'affected' or 'run-many' commands from the "common nx commands" menu.
Alternate Implementations
My suggestion goes with how it functions for the regular 'run' command found in the 'generate & run target' section. I would expect it to work the same. The only other way I can think of would be to have the run command be changed so that after selecting run I then select an option for run-many or run-affected followed by all the same options from the run flags menu.