diff --git a/pkg/state/selector_test.go b/pkg/state/selector_test.go index 2d25bfcf..e027b9a6 100644 --- a/pkg/state/selector_test.go +++ b/pkg/state/selector_test.go @@ -165,6 +165,13 @@ func TestSelectReleasesWithOverridesWithIncludedTransitives(t *testing.T) { includeNeeds: false, includeTransitiveNeeds: true, }, + { + subject: "include both direct and transitive needs", + selector: []string{"name=serviceA"}, + want: []string{"serviceA", "serviceB", "serviceC"}, + includeNeeds: true, + includeTransitiveNeeds: true, + }, } example := []byte(`releases: