File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/mcp-server-supabase/src Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,22 @@ describe('tools', () => {
476
476
}
477
477
} ) ;
478
478
479
+ test ( 'get logs for invalid service type' , async ( ) => {
480
+ const { callTool } = await setup ( ) ;
481
+ const project = mockProjects . values ( ) . next ( ) . value ! ;
482
+ const invalidService = 'invalid-service' ;
483
+ const getLogsPromise = callTool ( {
484
+ name : 'get_logs' ,
485
+ arguments : {
486
+ project_id : project . id ,
487
+ service : invalidService ,
488
+ } ,
489
+ } ) ;
490
+ await expect ( getLogsPromise ) . rejects . toThrow (
491
+ `unsupported log service type: invalid-service`
492
+ ) ;
493
+ } ) ;
494
+
479
495
test ( 'enable branching' , async ( ) => {
480
496
const { callTool } = await setup ( ) ;
481
497
const project = mockProjects . values ( ) . next ( ) . value ! ;
You can’t perform that action at this time.
0 commit comments