Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

model-features.test.ts

607 lines22.6 KB

1import { describe, expect, it } from 'vitest'
2​
3import {
4 anthropicReasoning,
5 anthropicServerTools,
6 parseThinkingTable,
7} from './anthropic-features.ts'
8import {
9 familyOf,
10 geminiModelFeatures,
11 parseModelIndexDocs,
12 parsePageModalities,
13 parsePageSections,
14 parsePageThinking,
15 parsePageTools,
16 parseThinkingBudgets,
17 parseThinkingPage,
18} from './gemini-features.ts'
19import { grokReasoningGap, parseGrokReasoning } from './grok.ts'
20​
21describe('anthropic features (issue #77)', () => {
22 const table = `| Model | Thinking types | Default | Rejected with 400 |
23| --------------------- | -------------------------------- | --------- | -------------------------- |
24| Claude Fable 5.1 | Adaptive only | Always on | \`"enabled"\`, \`"disabled"\` |
25| Claude Opus 5 | Adaptive only | On | \`"enabled"\`, \`"disabled"\`2 |
26| Claude Sonnet 4.5 | Extended only | Off | \`"adaptive"\` |`
27​
28 it('reads "Always on" as thinking that cannot be turned off', () => {
29 expect([...parseThinkingTable(table)]).toEqual([
30 ['claude fable 5.1', true],
31 ['claude opus 5', false],
32 ['claude sonnet 4.5', false],
33 ])
34 })
35​
36 it('prefers adaptive, falls back to budget, lists supported efforts', () => {
37 const effort = {
38 supported: true,
39 low: { supported: true },
40 max: { supported: false },
41 }
42 expect(
43 anthropicReasoning(
44 {
45 thinking: {
46 supported: true,
47 types: {
48 enabled: { supported: true },
49 adaptive: { supported: true },
50 },
51 },
52 effort,
53 },
54 true,
55 ),
56 ).toEqual({ mode: 'adaptive', mandatory: true, efforts: ['low'] })
57 expect(
58 anthropicReasoning(
59 {
60 thinking: {
61 supported: true,
62 types: {
63 enabled: { supported: true },
64 adaptive: { supported: false },
65 },
66 },
67 },
68 false,
69 ),
70 ).toEqual({ mode: 'budget', mandatory: false })
71 expect(anthropicReasoning({ thinking: { supported: false } }, false)).toBe(
72 null,
73 )
74 })
75​
76 it('gives every model the unrestricted tools, listed models the rest', () => {
77 const opus = anthropicServerTools('claude-opus-5-5')
78 expect(opus.serverTools).toContain('web_search_20250305')
79 expect(opus.serverTools).toContain('computer_toolset_20260801')
80 expect(opus.serverTools).not.toContain('computer_20251124')
81 expect(opus.sources.web_search_20250305?.sourceUrl).toMatch(
82 /web-search-tool$/,
83 )
84 const unknown = anthropicServerTools('claude-new-model')
85 expect(unknown.serverTools).toContain('bash_20250124')
86 expect(unknown.serverTools).not.toContain('code_execution_20250825')
87 })
88})
89​
90describe('gemini features (issue #77)', () => {
91 const thinking = `You cannot disable thinking for Gemini 3.1 Pro. Gemini 3 Flash and Flash-Lite also do not support full thinking-off.
92​
93| Thinking Level | Gemini 3.8 \\& 3.7 Flash | Gemini 3.1 Pro | Description |
94|---|---|---|---|
95| **\`minimal\`** | Not supported (error) | Not supported | x |
96| **\`low\`** | Supported | Supported | x |
97| **\`high\`** | Supported (Dynamic) | Supported (Default, Dynamic) | x |
98​
99| Model | Default setting (Thinking budget is not set) | Range | Disable thinking | Turn on dynamic thinking |
100|---|---|---|---|---|
101| **2.5 Pro** | Dynamic thinking | \`128\` to \`32768\` | N/A: Cannot disable thinking | \`thinkingBudget = -1\` (Default) |
102| **2.5 Flash** | Dynamic thinking | \`0\` to \`24576\` | \`thinkingBudget = 0\` | \`thinkingBudget = -1\` (Default) |
103| **Robotics-ER 1.6 Preview** | Dynamic thinking | \`0\` to \`24576\` | \`thinkingBudget = 0\` | \`thinkingBudget = -1\` (Default) |
104| **2.5 Flash Live Native Audio Preview (09-2025)** | Dynamic thinking | \`0\` to \`24576\` | \`thinkingBudget = 0\` | \`thinkingBudget = -1\` (Default) |`
105​
106 it('keys levels by family column and budgets by family row', () => {
107 const parsed = parseThinkingPage(thinking)
108 expect(parsed.get('gemini-3.7-flash')).toEqual({
109 mode: 'effort',
110 mandatory: null,
111 efforts: ['low', 'high'],
112 })
113 expect(parsed.get('gemini-3.8-flash')).toEqual({
114 mode: 'effort',
115 mandatory: null,
116 efforts: ['low', 'high'],
117 })
118 expect(parsed.get('gemini-3.1-pro')).toEqual({
119 mode: 'effort',
120 mandatory: true,
121 efforts: ['low', 'high'],
122 })
123 expect(parsed.get('gemini-2.5-pro')).toEqual({
124 mode: 'budget',
125 mandatory: true,
126 })
127 expect(parsed.get('gemini-2.5-flash')).toEqual({
128 mode: 'budget',
129 mandatory: false,
130 })
131 expect(parsed.get('gemini-2.5-flash-native-audio-preview-09-2025')).toEqual(
132 { mode: 'budget', mandatory: false },
133 )
134 expect(parsed.get('gemini-2.5-flash-native-audio-latest')).toBeUndefined()
135 expect(
136 parsed.get('gemini-2.5-flash-live-native-audio-preview'),
137 ).toBeUndefined()
138 expect(parsed.get('gemini-robotics-er-1.6-preview')).toBeUndefined()
139 expect(
140 parseThinkingBudgets(thinking).get(
141 'gemini-2.5-flash-native-audio-preview-09-2025',
142 ),
143 ).toEqual({ on: -1, off: 0 })
144 expect(parseThinkingBudgets(thinking).get('gemini-2.5-pro')).toEqual({
145 on: -1,
146 off: null,
147 })
148 expect(parseThinkingBudgets(thinking).get('gemini-2.5-flash')).toEqual({
149 on: -1,
150 off: 0,
151 })
152 })
153​
154 it('sets mandatory only for families the prose says cannot turn thinking off', () => {
155 const page = `You cannot disable thinking for Gemini 3.1 Pro. Gemini 3 Flash and Flash-Lite also do not support full thinking-off.
156​
157| Thinking Level | Gemini 3 Flash | Gemini 3.1 Flash-Lite | Gemini 3.6 \\& 3.5 Flash | Gemini Robotics ER 2 | Description |
158|---|---|---|---|---|---|
159| **\`minimal\`** | Supported | Supported | Supported | Supported | x |
160| **\`low\`** | Supported | Supported | Supported | Supported | x |
161| **\`medium\`** | Supported | Supported | Supported | Supported | x |
162| **\`high\`** | Supported | Supported | Supported | Supported | x |`
163 const parsed = parseThinkingPage(page)
164 const efforts = ['minimal', 'low', 'medium', 'high']
165 expect(parsed.get('gemini-3-flash')).toEqual({
166 mode: 'effort',
167 mandatory: true,
168 efforts,
169 })
170 expect(parsed.get('gemini-3.1-flash-lite')).toEqual({
171 mode: 'effort',
172 mandatory: true,
173 efforts,
174 })
175 for (const id of [
176 'gemini-3.6-flash',
177 'gemini-3.5-flash',
178 'gemini-robotics-er-2',
179 ]) {
180 expect(parsed.get(id)).toEqual({
181 mode: 'effort',
182 mandatory: null,
183 efforts,
184 })
185 }
186 })
187​
188 it('resolves ids to the longest family they version, never a sibling', () => {
189 const families = ['gemini-2.5-flash', 'gemini-2.5-flash-lite']
190 expect(familyOf('gemini-2.5-flash-lite-preview-09-2025', families)).toBe(
191 'gemini-2.5-flash-lite',
192 )
193 expect(familyOf('gemini-2.5-flash-001', families)).toBe('gemini-2.5-flash')
194 expect(familyOf('gemini-2.5-flash-image', families)).toBeNull()
195 })
196​
197 it('does not invent a mode when the thinking tables omit the id', () => {
198 const parsed = parseThinkingPage(thinking)
199 expect(
200 familyOf('gemini-2.5-computer-use-preview-10-2025', parsed.keys()),
201 ).toBeNull()
202 expect(familyOf('deep-research-preview-04-2026', parsed.keys())).toBeNull()
203 })
204​
205 it('reads the Supported data types row, or nothing', () => {
206 const row = (cells: string) => `x\n| Supported data types | ${cells} |\n`
207 expect(
208 parsePageModalities(
209 row('**Inputs** Audio, images, video, text, and PDF **Output** Text'),
210 ),
211 ).toEqual({
212 input: ['text', 'image', 'audio', 'video', 'file'],
213 output: ['text'],
214 })
215 expect(
216 parsePageModalities(
217 row(
218 '**Inputs** Audio (speech) **Output** Audio (translated speech) and Text (transcript)',
219 ),
220 ),
221 ).toEqual({ input: ['audio'], output: ['text', 'audio'] })
222 // A word that is not a medium leaves the whole fact unknown.
223 expect(
224 parsePageModalities(row('**Input** Text **Output** Text embeddings')),
225 ).toBeNull()
226 expect(
227 parsePageModalities(
228 row('**Input** Text, Image **Output** Video with audio'),
229 ),
230 ).toBeNull()
231 expect(parsePageModalities('| Capabilities | x |')).toBeNull()
232 // A parenthetical is dropped as a qualifier unless it names a medium.
233 expect(
234 parsePageModalities(
235 row(
236 '**Input** Text, Image, Video (up to 10s for editing) **Output** Audio (MP3), Text (Lyrics)',
237 ),
238 ),
239 ).toEqual({ input: ['text', 'image', 'video'], output: ['text', 'audio'] })
240 expect(
241 parsePageModalities(
242 row('**Inputs** Text (and Image, Audio) **Output** Text'),
243 ),
244 ).toBeNull()
245 expect(
246 parsePageModalities(row('**Inputs** Text **Output** Text (or images)')),
247 ).toBeNull()
248 expect(
249 parsePageModalities(
250 row('**Inputs** Text (short videos) **Output** Text'),
251 ),
252 ).toBeNull()
253 // Timestamp metadata is not a medium. The other words still count.
254 expect(
255 parsePageModalities(
256 row(
257 '**Inputs** Audio (up to 1 hour) **Output** Text, Word annotations',
258 ),
259 ),
260 ).toEqual({ input: ['audio'], output: ['text'] })
261 expect(
262 parsePageModalities(row('**Inputs** Audio **Output** Word annotations')),
263 ).toBeNull()
264 })
265​
266 describe('model pages', () => {
267 const INDEX = 'https://ai.google.dev/gemini-api/docs/models'
268 const page = (types: string) =>
269 `| Supported data types | ${types} |\n| Capabilities | **[Search grounding](u)** Supported |\n`
270 const withPages = async <T>(
271 pages: Record<string, string | null>,
272 run: () => Promise<T>,
273 options?: {
274 index?: string
275 extras?: Record<string, string | null>
276 },
277 ): Promise<T> => {
278 const original = globalThis.fetch
279 const indexBody =
280 options?.index ??
281 Object.keys(pages)
282 .map((name) => `${INDEX}/${name}`)
283 .join('\n')
284 const extras = options?.extras ?? {}
285 globalThis.fetch = ((url: string) => {
286 const href = String(url)
287 const slug = href.match(/\/models\/([^/]+)\.md\.txt$/)?.[1]
288 const extra = Object.keys(extras).find((key) => href.endsWith(key))
289 const body = href.endsWith('/thinking.md.txt')
290 ? thinking
291 : slug && Object.hasOwn(pages, slug)
292 ? pages[slug]
293 : extra
294 ? extras[extra]
295 : indexBody
296 return Promise.resolve(
297 typeof body === 'string'
298 ? new Response(body)
299 : new Response('upstream down', { status: 503 }),
300 )
301 }) as typeof fetch
302 try {
303 return await run()
304 } finally {
305 globalThis.fetch = original
306 }
307 }
308​
309 it('keeps stored facts, and records the failure, when a page fails to load', async () => {
310 const { features, docsFailures } = await withPages(
311 {
312 'gemini-2.5-flash': page('**Inputs** Text, images **Output** Text'),
313 'gemini-2.5-flash-lite': null,
314 },
315 () =>
316 geminiModelFeatures([
317 'gemini-2.5-flash',
318 'gemini-2.5-flash-lite',
319 'gemma-4-31b-it',
320 ]),
321 )
322 expect(features('gemini-2.5-flash', false)).toMatchObject({
323 modalities: { input: ['text', 'image'], output: ['text'] },
324 serverTools: ['googleSearch'],
325 factSources: {
326 modalities: {
327 derivation: 'docs-derived',
328 sourceUrl: `${INDEX}/gemini-2.5-flash.md.txt`,
329 path: 'Supported data types',
330 },
331 },
332 })
333 expect(features('gemini-2.5-flash', false).absent).toBeUndefined()
334 // The page that failed: the poll keeps what is stored, and the row is
335 // not handed to the `gemini-2.5-flash` page that did load.
336 expect(features('gemini-2.5-flash-lite', false)).toMatchObject({
337 modalities: null,
338 serverTools: null,
339 absent: { modalities: 'unavailable', serverTools: 'unavailable' },
340 })
341 expect(docsFailures.failed).toBe(1)
342 expect(docsFailures.first[0]?.source).toBe(
343 `${INDEX}/gemini-2.5-flash-lite.md.txt`,
344 )
345 // No page at all is a plain unknown.
346 expect(features('gemma-4-31b-it', false).absent).toBeUndefined()
347 })
348​
349 it('refuses a poll in which no page that loaded states modalities', async () => {
350 await expect(
351 withPages(
352 {
353 'gemini-2.5-flash': '| Supported modalities | Text |',
354 'gemini-2.5-pro': '| Supported modalities | Text |',
355 },
356 () => geminiModelFeatures(['gemini-2.5-flash', 'gemini-2.5-pro']),
357 ),
358 ).rejects.toThrow('gemini model pages: 0 of 2 state modalities')
359 })
360​
361 it('maps Supported capabilities to generateContent tool fields', () => {
362 const row =
363 '| Capabilities | **[Code execution](u)** Supported **[Computer use](u)** Supported (Preview) **[File search](u)** Not supported **[Search grounding](u)** Supported **[Thinking](u)** Supported |'
364 expect(parsePageTools(`x\n${row}\n`)).toEqual([
365 'codeExecution',
366 'computerUse',
367 'googleSearch',
368 ])
369 })
370​
371 it('leaves tools empty when the page marks none supported', () => {
372 const row =
373 '| Capabilities | **[Code execution](u)** Not supported **[Search grounding](u)** Not supported |'
374 expect(parsePageTools(`x\n${row}\n`)).toEqual([])
375 })
376​
377 it('reads backtick thinking levels and drops a level the same paragraph rejects', () => {
378 expect(
379 parsePageThinking(
380 'Configurable Thinking levels (`minimal`, `medium` default, and `high`).',
381 ),
382 ).toEqual({
383 mode: 'effort',
384 mandatory: null,
385 efforts: ['minimal', 'medium', 'high'],
386 })
387 expect(
388 parsePageThinking(
389 'Configure background reasoning using `thinking_config` (`thinking_level`: `low`, `medium`, or `high`). Note that `MINIMAL` is not supported.',
390 ),
391 ).toEqual({
392 mode: 'effort',
393 mandatory: null,
394 efforts: ['low', 'medium', 'high'],
395 })
396 expect(
397 parsePageThinking(
398 'Thinking levels (`low`, `high`). You cannot disable thinking for this model.',
399 )?.mandatory,
400 ).toBe(true)
401 expect(
402 parsePageThinking('generation_config.thinking_level: "high"'),
403 ).toBeNull()
404 expect(
405 parsePageThinking(
406 'Thinking levels (`low`).\n\nThinking levels (`high`).',
407 ),
408 ).toBeNull()
409 })
410​
411 it('binds endpoint ids on the models index and version ids on the page', () => {
412 const index = [
413 '| [Gemini Omni Flash](https://ai.google.dev/gemini-api/docs/models/gemini-omni-flash) | ``` gemini-omni-1.1-flash ``` |',
414 '| [Gemini 3.1 Pro](https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview) | ``` gemini-3.1-pro-preview ``` |',
415 '| [Gemini Robotics ER 2](https://ai.google.dev/gemini-api/docs/robotics-overview) | ``` gemini-robotics-er-2-preview ``` |',
416 'https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash',
417 ].join('\n')
418 const docs = parseModelIndexDocs(index)
419 expect(docs).toEqual([
420 {
421 url: 'https://ai.google.dev/gemini-api/docs/models/gemini-omni-flash',
422 ids: ['gemini-omni-1.1-flash'],
423 },
424 {
425 url: 'https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview',
426 ids: ['gemini-3.1-pro-preview'],
427 },
428 {
429 url: 'https://ai.google.dev/gemini-api/docs/robotics-overview',
430 ids: ['gemini-robotics-er-2-preview'],
431 },
432 {
433 url: 'https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash',
434 ids: [],
435 },
436 ])
437 const omni = `## gemini-omni-1.1-flash\n| Model code | **Gemini API** \`gemini-omni-1.1-flash\` |\n| Supported data types | **Input** Text, Image, Video (up to 10s for editing and extension) **Output** Video |\n| Versions | - Stable: \`gemini-omni-1.1-flash\` - Preview: \`gemini-omni-flash-preview\` |`
438 const pro = `## gemini-3.1-pro-preview\n| Model code | \`gemini-3.1-pro-preview\` |\n| Supported data types | **Inputs** Text **Output** Text |\n| Versions | - Preview: \`gemini-3.1-pro-preview\` - Preview: \`gemini-3.1-pro-preview-customtools\` |`
439 const overview = [
440 '### Gemini Robotics ER 2 Preview',
441 '| Model code | `gemini-robotics-er-2-preview` |',
442 '| Supported data types | **Inputs** Text, images, video, audio **Output** Text |',
443 'generation_config={"thinking_level": "high"}',
444 '### Gemini Robotics ER 2 Streaming Preview',
445 '| Model code | `gemini-robotics-er-2-streaming-preview` |',
446 '| Supported data types | **Inputs** Audio **Output** Text |',
447 ].join('\n')
448 const sections = parsePageSections(overview)
449 expect(sections.map((section) => section.ids)).toEqual([
450 ['gemini-robotics-er-2-preview'],
451 ['gemini-robotics-er-2-streaming-preview'],
452 ])
453 expect(parsePageThinking(overview)).toBeNull()
454 return withPages(
455 {
456 'gemini-omni-flash': omni,
457 'gemini-3.1-pro-preview': pro,
458 'gemini-2.5-flash':
459 '| Supported data types | **Inputs** Text **Output** Text |',
460 },
461 async () => {
462 const { features } = await geminiModelFeatures([
463 'gemini-omni-1.1-flash',
464 'gemini-omni-flash-preview',
465 'gemini-3.1-pro-preview',
466 'gemini-3.1-pro-preview-customtools',
467 'gemini-robotics-er-2-preview',
468 'gemini-robotics-er-2-streaming-preview',
469 ])
470 expect(features('gemini-omni-1.1-flash', false).modalities).toEqual({
471 input: ['text', 'image', 'video'],
472 output: ['video'],
473 })
474 expect(
475 features('gemini-omni-flash-preview', false).modalities?.output,
476 ).toEqual(['video'])
477 expect(
478 features('gemini-3.1-pro-preview-customtools', false).modalities,
479 ).toEqual({ input: ['text'], output: ['text'] })
480 expect(
481 features('gemini-robotics-er-2-preview', false).modalities?.input,
482 ).toEqual(['text', 'image', 'audio', 'video'])
483 expect(
484 features('gemini-robotics-er-2-streaming-preview', false)
485 .modalities,
486 ).toEqual({ input: ['audio'], output: ['text'] })
487 expect(
488 features('gemini-robotics-er-2-streaming-preview', true).reasoning,
489 ).toBeNull()
490 },
491 {
492 index,
493 extras: { '/robotics-overview.md.txt': overview },
494 },
495 )
496 })
497​
498 it('uses native page thinking levels even when listing omits its flag', () => {
499 const body = [
500 '- Configurable Thinking levels (`minimal`, `medium` default, and `high`).',
501 '## gemini-nano-banana-2.1',
502 '| Model code | `gemini-nano-banana-2.1` |',
503 '| Supported data types | **Inputs** Text, Image **Output** Image and Text |',
504 ].join('\n')
505 return withPages({ 'gemini-nano-banana-2.1': body }, async () => {
506 const { features } = await geminiModelFeatures([
507 'gemini-nano-banana-2.1',
508 ])
509 expect(features('gemini-nano-banana-2.1', true)).toMatchObject({
510 reasoning: {
511 mode: 'effort',
512 mandatory: null,
513 efforts: ['minimal', 'medium', 'high'],
514 },
515 factSources: {
516 reasoning: {
517 path: 'thinking level',
518 sourceUrl: `${INDEX}/gemini-nano-banana-2.1.md.txt`,
519 },
520 },
521 })
522 expect(features('gemini-nano-banana-2.1', undefined).reasoning).toEqual(
523 features('gemini-nano-banana-2.1', true).reasoning,
524 )
525 })
526 })
527​
528 it('keeps the dedicated model-code page when a versions row repeats the id', async () => {
529 const index = [
530 '| [Gemini 3.5 Flash](https://ai.google.dev/gemini-api/docs/models/gemini-3.5-flash) | ``` gemini-3.5-flash ``` |',
531 '| [Gemini 3 Flash](https://ai.google.dev/gemini-api/docs/models/gemini-3-flash-preview) | ``` gemini-3-flash-preview ``` |',
532 ].join('\n')
533 const flash35 = [
534 '## gemini-3.5-flash',
535 '| Model code | `gemini-3.5-flash` |',
536 '| Versions | - Stable: `gemini-3.5-flash` - Preview: `gemini-3-flash-preview` |',
537 '| Supported data types | **Inputs** Audio **Output** Text |',
538 ].join('\n')
539 const flash3 = [
540 '## gemini-3-flash-preview',
541 '| Model code | `gemini-3-flash-preview` |',
542 '| Supported data types | **Inputs** Text **Output** Text |',
543 ].join('\n')
544 const { features } = await withPages(
545 {
546 'gemini-3.5-flash': flash35,
547 'gemini-3-flash-preview': flash3,
548 },
549 () =>
550 geminiModelFeatures(['gemini-3.5-flash', 'gemini-3-flash-preview']),
551 { index },
552 )
553 expect(features('gemini-3-flash-preview', false).modalities).toEqual({
554 input: ['text'],
555 output: ['text'],
556 })
557 expect(features('gemini-3.5-flash', false).modalities).toEqual({
558 input: ['audio'],
559 output: ['text'],
560 })
561 })
562​
563 it('refuses a model id that two pages both document', async () => {
564 const documented = (id: string) =>
565 `## ${id}\n| Model code | \`${id}\` |\n| Supported data types | **Inputs** Text **Output** Text |\n`
566 await expect(
567 withPages(
568 {
569 'gemini-a': documented('shared-id'),
570 'gemini-b': documented('shared-id'),
571 },
572 () => geminiModelFeatures(['gemini-a', 'gemini-b']),
573 ),
574 ).rejects.toThrow('gemini model pages: shared-id is documented twice')
575 })
576 })
577})
578​
579describe('grok reasoning (issue #77)', () => {
580 const page = (lines: string) =>
581 `# Grok\n\n## Capabilities\n\n${lines}\n\n## Pricing\n`
582 it('reads efforts; none means reasoning can be turned off', () => {
583 expect(
584 parseGrokReasoning(
585 page(
586 '- **Reasoning:** Yes\n- **Reasoning efforts (supported):** `low`, `high`',
587 ),
588 ),
589 ).toEqual({ mode: 'effort', mandatory: true, efforts: ['low', 'high'] })
590 expect(
591 parseGrokReasoning(
592 page(
593 '- **Reasoning:** Yes\n- **Reasoning efforts (supported):** `none`, `low`',
594 ),
595 )?.mandatory,
596 ).toBe(false)
597 })
598​
599 it('stays null without a documented knob or without reasoning', () => {
600 const yes = page('- **Reasoning:** Yes')
601 expect(parseGrokReasoning(yes)).toBeNull()
602 expect(grokReasoningGap(yes)).toBe('silent')
603 const no = page('- **Reasoning:** No')
604 expect(parseGrokReasoning(no)).toBeNull()
605 expect(grokReasoningGap(no)).toBeNull()
606 })
607})