|
5 | 5 | */ |
6 | 6 |
|
7 | 7 | import { describe, it, expect, beforeEach, afterEach } from 'vitest'; |
8 | | -import { writeFileSync, readFileSync } from 'node:fs'; |
9 | | -import { join, resolve } from 'node:path'; |
| 8 | +import { writeFileSync } from 'node:fs'; |
| 9 | +import { join } from 'node:path'; |
10 | 10 | import { TestRig } from './test-helper.js'; |
11 | 11 |
|
12 | 12 | // BOM encoders |
@@ -116,21 +116,4 @@ describe('BOM end-to-end integraion', () => { |
116 | 116 | 'BOM_OK UTF-32BE', |
117 | 117 | ); |
118 | 118 | }); |
119 | | - |
120 | | - it('Can describe a PNG file', async () => { |
121 | | - const imagePath = resolve( |
122 | | - process.cwd(), |
123 | | - 'docs/assets/gemini-screenshot.png', |
124 | | - ); |
125 | | - const imageContent = readFileSync(imagePath); |
126 | | - const filename = 'gemini-screenshot.png'; |
127 | | - writeFileSync(join(rig.testDir!, filename), imageContent); |
128 | | - const prompt = `What is shown in the image ${filename}?`; |
129 | | - const output = await rig.run({ args: prompt }); |
130 | | - await rig.waitForToolCall('read_file'); |
131 | | - const lower = output.toLowerCase(); |
132 | | - // The response is non-deterministic, so we just check for some |
133 | | - // keywords that are very likely to be in the response. |
134 | | - expect(lower.includes('gemini')).toBeTruthy(); |
135 | | - }); |
136 | 119 | }); |
0 commit comments