@@ -46,6 +46,7 @@ func TestCreateCommand(t *testing.T) {
4646 testutil .TableTestCommand (t , testutil.CommandTests {
4747 "creates a bolt application from prompts" : {
4848 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
49+ cm .IO .On ("IsTTY" ).Return (true )
4950 cm .IO .On ("SelectPrompt" , mock .Anything , "Select an app:" , mock .Anything , mock .Anything ).
5051 Return (
5152 iostreams.SelectPromptResponse {
@@ -82,6 +83,7 @@ func TestCreateCommand(t *testing.T) {
8283 "creates a deno application from flags" : {
8384 CmdArgs : []string {"--template" , "slack-samples/deno-starter-template" },
8485 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
86+ cm .IO .On ("IsTTY" ).Return (true )
8587 cm .IO .On ("SelectPrompt" , mock .Anything , "Select an app:" , mock .Anything , mock .Anything ).
8688 Return (
8789 iostreams.SelectPromptResponse {
@@ -118,6 +120,7 @@ func TestCreateCommand(t *testing.T) {
118120 "creates an agent app using agent argument shortcut" : {
119121 CmdArgs : []string {"agent" },
120122 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
123+ cm .IO .On ("IsTTY" ).Return (true )
121124 // Should skip category prompt and go directly to language selection
122125 cm .IO .On ("SelectPrompt" , mock .Anything , "Select a language:" , mock .Anything , mock .Anything ).
123126 Return (
@@ -344,6 +347,7 @@ func TestCreateCommand(t *testing.T) {
344347 },
345348 "user accepts default name from prompt" : {
346349 Setup : func (t * testing.T , ctx context.Context , cm * shared.ClientsMock , cf * shared.ClientFactory ) {
350+ cm .IO .On ("IsTTY" ).Return (true )
347351 cm .IO .On ("SelectPrompt" , mock .Anything , "Select an app:" , mock .Anything , mock .Anything ).
348352 Return (
349353 iostreams.SelectPromptResponse {
0 commit comments