@@ -445,5 +445,46 @@ fn test_kiro_cli_init_verbose_fish_post_subommand() -> Result<(), Box<dyn std::e
445445
446446 println ! ( "✅ Kiro Cli init --verbose fish post subcommand executed successfully!" ) ;
447447
448+ Ok ( ( ) )
449+ }
450+
451+ #[ test]
452+ #[ cfg( all( feature = "init" , feature = "sanity" ) ) ]
453+ fn test_kiro_cli_init_v_bash_pre_subommand ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
454+ println ! ( "\n 🔍 Testing kiro-cli init -v bash pre ... | Description: Tests the <code> kiro-cli init -v bash pre </code> subcommand to verify verbose bash pre response." ) ;
455+
456+ println ! ( "\n 🔍 Executing 'kiro-cli init -v bash pre' subcommand..." ) ;
457+ let response = q_chat_helper:: execute_q_subcommand ( "kiro-cli" , & [ "init" , "-v" , "bash" , "pre" ] ) ?;
458+
459+ println ! ( "📝 FULL OUTPUT:" ) ;
460+ println ! ( "{}" , response) ;
461+ println ! ( "📝 END OUTPUT" ) ;
462+
463+ assert ! ( response. contains( "Q_SHELL=" ) ) ;
464+ assert ! ( response. contains( "SHOULD_QTERM_LAUNCH=" ) ) ;
465+ assert ! ( response. contains( "__fig_source_bash_preexec" ) ) ;
466+ assert ! ( !response. contains( "__fig_pre_prompt" ) ) ;
467+ println ! ( "✅ Kiro Cli init -v bash pre subcommand executed successfully!" ) ;
468+
469+ Ok ( ( ) )
470+ }
471+
472+ #[ test]
473+ #[ cfg( all( feature = "init" , feature = "sanity" ) ) ]
474+ fn test_kiro_cli_init_v_bash_post_subommand ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
475+ println ! ( "\n 🔍 Testing kiro-cli init -v bash post ... | Description: Tests the <code> kiro-cli init -v bash post </code> subcommand to verify verbose bash post response." ) ;
476+
477+ println ! ( "\n 🔍 Executing 'kiro-cli init -v bash post' subcommand..." ) ;
478+ let response = q_chat_helper:: execute_q_subcommand ( "kiro-cli" , & [ "init" , "-v" , "bash" , "post" ] ) ?;
479+
480+ println ! ( "📝 FULL OUTPUT:" ) ;
481+ println ! ( "{}" , response) ;
482+ println ! ( "📝 END OUTPUT" ) ;
483+
484+ assert ! ( response. contains( "__fig_pre_prompt" ) ) ;
485+ assert ! ( response. contains( "__fig_post_prompt" ) ) ;
486+ assert ! ( response. contains( "fig_osc" ) ) ;
487+ assert ! ( response. contains( "kiro-cli _ pre-cmd" ) ) ;
488+ println ! ( "✅ Kiro Cli init -v bash post subcommand executed successfully!" ) ;
448489 Ok ( ( ) )
449490}
0 commit comments