@capybara-hq/testing 0.1.0-rc.25 → 0.1.0-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -319,8 +319,14 @@ export function describeModelProviderConformance(name, setup) {
|
|
|
319
319
|
const { req, res, info } = await run(1);
|
|
320
320
|
expect(validateImageGenerateResult(req, info, res)).toBeNull();
|
|
321
321
|
});
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
// A model that returns one image per call declares maxImages 1; the kernel never asks it
|
|
323
|
+
// for more, so the suite does not either.
|
|
324
|
+
it("generates two images when the model allows it", async (ctx) => {
|
|
325
|
+
const img = t.expect.imageGeneration;
|
|
326
|
+
if (!img)
|
|
327
|
+
return ctx.skip();
|
|
328
|
+
const listed = (await t.provider.listModels()).find((m) => m.id === img.model);
|
|
329
|
+
if ((listed?.imageGeneration?.maxImages ?? 0) < 2)
|
|
324
330
|
return ctx.skip();
|
|
325
331
|
const { req, res, info } = await run(2);
|
|
326
332
|
expect(res.images).toHaveLength(2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/testing",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.26",
|
|
4
4
|
"description": "Test helpers for Capybara: test containers, dual-replica harness and fake third-party servers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tsx": "^4.23.15",
|
|
48
48
|
"ws": "^8.22.0",
|
|
49
49
|
"zod": "^4.6.7",
|
|
50
|
-
"@capybara-hq/kernel": "^0.1.0-rc.
|
|
50
|
+
"@capybara-hq/kernel": "^0.1.0-rc.44"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/pg": "^8.23.1",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"vitest": "^5.0.5",
|
|
60
|
-
"@capybara-hq/plugin-
|
|
61
|
-
"@capybara-hq/plugin-
|
|
60
|
+
"@capybara-hq/plugin-tools": "^0.1.0-rc.17",
|
|
61
|
+
"@capybara-hq/plugin-sdk": "^0.1.0-rc.32"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"@capybara-hq/plugin-tools": {
|