Update spec.types.test.ts

This commit is contained in:
Olivier Chafik 2025-07-04 10:33:14 +01:00
commit b6e00f9a49
No known key found for this signature in database

View file

@ -676,9 +676,9 @@ const MISSING_SDK_TYPES = [
// These aren't supported by the SDK yet:
// TODO: Add definitions to the SDK
'Annotations',
'ModelHint',
'ModelPreferences',
'Annotations',
]
function extractExportedTypes(source: string): string[] {
@ -693,6 +693,7 @@ describe('Spec Types', () => {
it('should define some expected types', () => {
expect(specTypes).toContain('JSONRPCNotification');
expect(specTypes).toContain('ElicitResult');
expect(specTypes).toHaveLength(91);
});
it('should have up to date list of missing sdk types', () => {
@ -709,4 +710,4 @@ describe('Spec Types', () => {
expect(testSource).toContain(`function check${type}(`);
});
}
});
});