File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
packages/mcp-server-supabase/src Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -2276,6 +2276,28 @@ describe('feature groups', () => {
2276
2276
'execute_sql' ,
2277
2277
] ) ;
2278
2278
} ) ;
2279
+
2280
+ test ( 'unimplemented feature group produces custom error message' , async ( ) => {
2281
+ const platform : SupabasePlatform = {
2282
+ database : {
2283
+ executeSql ( ) {
2284
+ throw new Error ( 'Not implemented' ) ;
2285
+ } ,
2286
+ listMigrations ( ) {
2287
+ throw new Error ( 'Not implemented' ) ;
2288
+ } ,
2289
+ applyMigration ( ) {
2290
+ throw new Error ( 'Not implemented' ) ;
2291
+ } ,
2292
+ } ,
2293
+ } ;
2294
+
2295
+ const setupPromise = setup ( { platform, features : [ 'account' ] } ) ;
2296
+
2297
+ await expect ( setupPromise ) . rejects . toThrow (
2298
+ "This platform does not support the 'account' feature group"
2299
+ ) ;
2300
+ } ) ;
2279
2301
} ) ;
2280
2302
2281
2303
describe ( 'project scoped tools' , ( ) => {
You can’t perform that action at this time.
0 commit comments