@@ -23,6 +23,7 @@ describe("composerSlashCommands", () => {
2323 expect ( isBuiltInComposerSlashCommand ( "review" ) ) . toBe ( true ) ;
2424 expect ( isBuiltInComposerSlashCommand ( "fast" ) ) . toBe ( true ) ;
2525 expect ( isBuiltInComposerSlashCommand ( "automation" ) ) . toBe ( true ) ;
26+ expect ( isBuiltInComposerSlashCommand ( "blame-someone-else" ) ) . toBe ( true ) ;
2627 expect ( isBuiltInComposerSlashCommand ( "export" ) ) . toBe ( true ) ;
2728 expect ( isBuiltInComposerSlashCommand ( "feedback" ) ) . toBe ( true ) ;
2829 expect ( isBuiltInComposerSlashCommand ( "unknown" ) ) . toBe ( false ) ;
@@ -34,6 +35,9 @@ describe("composerSlashCommands", () => {
3435 expect ( filterComposerSlashCommands ( "auto" ) . map ( ( entry ) => entry . command ) ) . toEqual ( [
3536 "automation" ,
3637 ] ) ;
38+ expect ( filterComposerSlashCommands ( "blame" ) . map ( ( entry ) => entry . command ) ) . toEqual ( [
39+ "blame-someone-else" ,
40+ ] ) ;
3741 expect ( filterComposerSlashCommands ( "feed" ) . map ( ( entry ) => entry . command ) ) . toEqual ( [ "feedback" ] ) ;
3842 } ) ;
3943
@@ -58,6 +62,10 @@ describe("composerSlashCommands", () => {
5862 command : "side" ,
5963 args : "is this safe?" ,
6064 } ) ;
65+ expect ( parseComposerSlashInvocation ( "/blame-someone-else src/ui/button.tsx" ) ) . toEqual ( {
66+ command : "blame-someone-else" ,
67+ args : "src/ui/button.tsx" ,
68+ } ) ;
6169 expect ( parseComposerSlashInvocation ( "/automation every 6h check the page" ) ) . toEqual ( {
6270 command : "automation" ,
6371 args : "every 6h check the page" ,
@@ -299,7 +307,7 @@ describe("composerSlashCommands", () => {
299307 canOfferSideCommand : true ,
300308 canOfferExportCommand : true ,
301309 } ) ,
302- ) . toEqual ( [ "side" , "export" , "feedback" , "automation" ] ) ;
310+ ) . toEqual ( [ "side" , "export" , "feedback" , "blame-someone-else" , " automation"] ) ;
303311 } ) ;
304312
305313 it ( "offers the app-level /export command on every provider" , ( ) => {
@@ -411,6 +419,7 @@ describe("composerSlashCommands", () => {
411419 "subagents" ,
412420 "export" ,
413421 "feedback" ,
422+ "blame-someone-else" ,
414423 "automation" ,
415424 ] ) ;
416425 } ) ;
0 commit comments