cli: no longer default test to watch mode when since flag is provided
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli': minor
|
||||
---
|
||||
|
||||
The `repo test` command will no longer default to watch mode if the `--since` flag is provided.
|
||||
@@ -172,7 +172,11 @@ export async function command(opts: OptionValues, cmd: Command): Promise<void> {
|
||||
}
|
||||
|
||||
// Run in watch mode unless in CI, coverage mode, or running all tests
|
||||
if (!process.env.CI && !hasFlags('--coverage', '--watch', '--watchAll')) {
|
||||
if (
|
||||
!opts.since &&
|
||||
!process.env.CI &&
|
||||
!hasFlags('--coverage', '--watch', '--watchAll')
|
||||
) {
|
||||
const isGitRepo = () =>
|
||||
runCheck('git', 'rev-parse', '--is-inside-work-tree');
|
||||
const isMercurialRepo = () => runCheck('hg', '--cwd', '.', 'root');
|
||||
|
||||
Reference in New Issue
Block a user