Skip to content

Commit c021639

Browse files
committed
fix: tests
1 parent 735c48c commit c021639

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/mcp-server-supabase/src/server.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
} from '@modelcontextprotocol/sdk/types.js';
66
import { StreamTransport } from '@supabase/mcp-utils';
77
import { codeBlock, stripIndent } from 'common-tags';
8+
import gqlmin from 'gqlmin';
89
import { setupServer } from 'msw/node';
910
import { beforeEach, describe, expect, test } from 'vitest';
1011
import {
@@ -2962,7 +2963,8 @@ describe('docs tools', () => {
29622963
throw new Error('tool description not found');
29632964
}
29642965

2965-
expect(tool.description.includes(contentApiMockSchema)).toBe(true);
2966+
const minifiedSchema = gqlmin(contentApiMockSchema);
2967+
expect(tool.description.includes(minifiedSchema)).toBe(true);
29662968
});
29672969

29682970
test('schema is only loaded when listing tools', async () => {

0 commit comments

Comments
 (0)