@@ -48,10 +48,14 @@ describe("live model turn probes", () => {
|
48 | 48 | |
49 | 49 | it("builds an image probe with native image content", () => { |
50 | 50 | const context = buildLiveModelImageProbeContext({}); |
51 | | -expect(context.messages[0]?.content).toEqual([ |
52 | | -expect.objectContaining({ type: "text" }), |
53 | | -expect.objectContaining({ type: "image", mimeType: "image/png" }), |
54 | | -]); |
| 51 | +const content = context.messages[0]?.content; |
| 52 | +expect(Array.isArray(content)).toBe(true); |
| 53 | +if (!Array.isArray(content)) { |
| 54 | +throw new Error("Expected image probe content blocks"); |
| 55 | +} |
| 56 | +expect(content[0]?.type).toBe("text"); |
| 57 | +expect(content[1]?.type).toBe("image"); |
| 58 | +expect(content[1]).toHaveProperty("mimeType", "image/png"); |
55 | 59 | }); |
56 | 60 | |
57 | 61 | it("extracts assistant text blocks only", () => { |
@@ -88,7 +92,7 @@ describe("live model turn probes", () => {
|
88 | 92 | |
89 | 93 | it("skips known stale file probe routes", () => { |
90 | 94 | expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "glm-5" })).toBe(true); |
91 | | -expect(shouldSkipLiveModelFileProbe({ provider: "google", id: "gemini-3-pro-preview" })).toBe( |
| 95 | +expect(shouldSkipLiveModelFileProbe({ provider: "google", id: "gemini-3.1-pro-preview" })).toBe( |
92 | 96 | true, |
93 | 97 | ); |
94 | 98 | expect(shouldSkipLiveModelFileProbe({ provider: "opencode-go", id: "mimo-v2-omni" })).toBe( |
|