diff --git a/cli/internal/scope/scope.go b/cli/internal/scope/scope.go index c648677c1f59c..bd7ee9434e082 100644 --- a/cli/internal/scope/scope.go +++ b/cli/internal/scope/scope.go @@ -111,12 +111,10 @@ func ResolvePackages(opts *Opts, scm scm.SCM, ctx *context.Context, tui cli.Ui, } } } - tui.Output(fmt.Sprintf(ui.Dim("• Packages changed since %s in scope: %s"), opts.Since, strings.Join(filteredPkgs.UnsafeListOfStrings(), ", "))) } else if changedPackages.Len() > 0 { // --since was specified, there are changes, but no scope was specified. // Run the packages that have changed filteredPkgs = changedPackages - tui.Output(fmt.Sprintf(ui.Dim("• Packages changed since %s: %s"), opts.Since, strings.Join(filteredPkgs.UnsafeListOfStrings(), ", "))) } else if scopePkgs.Len() > 0 { // There was either a global change, or no changes, or no --since flag // There was a --scope flag, run the desired scopes diff --git a/cli/scripts/e2e/e2e.ts b/cli/scripts/e2e/e2e.ts index d8b3d79733cb1..c766047f23b44 100644 --- a/cli/scripts/e2e/e2e.ts +++ b/cli/scripts/e2e/e2e.ts @@ -103,22 +103,17 @@ function runSmokeTests( ) ); assert.fixture( - `• Packages changed since main: a`, sinceCommandOutputNoCache[0], - "Calculates changed packages (--since)" - ); - assert.fixture( `• Packages in scope: a`, - sinceCommandOutputNoCache[1], "Packages in scope" ); assert.fixture( + sinceCommandOutputNoCache[1], `• Running test in 1 packages`, - sinceCommandOutputNoCache[2], "Runs only in changed packages" ); assert.fixture( - sinceCommandOutputNoCache[3], + sinceCommandOutputNoCache[2], `a:test: cache miss, executing ${getHashFromOutput( sinceCommandOutputNoCache, "a#test" @@ -131,22 +126,17 @@ function runSmokeTests( ); assert.fixture( - `• Packages changed since main: a`, sinceCommandOutput[0], - "Calculates changed packages (--since)" - ); - assert.fixture( `• Packages in scope: a`, - sinceCommandOutput[1], "Packages in scope" ); assert.fixture( + sinceCommandOutput[1], `• Running test in 1 packages`, - sinceCommandOutput[2], "Runs only in changed packages" ); assert.fixture( - sinceCommandOutput[3], + sinceCommandOutput[2], `a:test: cache miss, executing ${getHashFromOutput( sinceCommandOutput, "a#test" @@ -159,23 +149,18 @@ function runSmokeTests( repo.turbo("run", ["test", "--since=main", "--stream"], options) ); assert.equal( - `• Packages changed since main: a`, sinceCommandSecondRunOutput[0], - "Calculates changed packages (--since) after a second run" - ); - assert.equal( `• Packages in scope: a`, - sinceCommandSecondRunOutput[1], "Packages in scope after a second run" ); assert.equal( + sinceCommandSecondRunOutput[1], `• Running test in 1 packages`, - sinceCommandSecondRunOutput[2], "Runs only in changed packages after a second run" ); assert.fixture( - sinceCommandSecondRunOutput[3], + sinceCommandSecondRunOutput[2], `a:test: cache hit, replaying output ${getHashFromOutput( sinceCommandSecondRunOutput, "a#test"