Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: cover expanded Runway limits and catalog consumers
wrenchwren7533da9395ec
diff --git a/client/src/components/musicVideo/SceneCard.test.jsx b/client/src/components/musicVideo/SceneCard.test.jsxindex e245430d81..4a135b067a 100644--- a/client/src/components/musicVideo/SceneCard.test.jsx+++ b/client/src/components/musicVideo/SceneCard.test.jsx@@ -1,6 +1,7 @@import { useState } from 'react';import { beforeEach, describe, expect, it, vi } from 'vitest';import { fireEvent, render, screen, waitFor, within } from '@testing-library/react';+vi.mock('../../services/apiRunwayCatalog.js', async (importOriginal) => ({ ...await importOriginal(), loadRunwayCatalog: vi.fn().mockResolvedValue(undefined) }));vi.mock('../../hooks/useFilmLookPresets.js', () => ({ default: () => ({ presets: [], loaded: true, save: vi.fn(), remove: vi.fn() }) }));vi.mock('../../hooks/useVideoFileSrc.js', () => ({ useVideoFileSrc: vi.fn(() => ({})) }));vi.mock('../../services/apiMusicVideo.js', async (importOriginal) => ({ ...(await importOriginal()), getMusicVideoMediaPool: vi.fn(async () => ({ items: [] })) }));diff --git a/client/src/components/musicVideo/ShotActionInspector.test.jsx b/client/src/components/musicVideo/ShotActionInspector.test.jsxindex 6c204f53ca..164fcb33af 100644--- a/client/src/components/musicVideo/ShotActionInspector.test.jsx+++ b/client/src/components/musicVideo/ShotActionInspector.test.jsx@@ -3,6 +3,7 @@ import { fireEvent, render, screen, waitFor } from '@testing-library/react';import TreatmentShotList from './TreatmentShotList.jsx';import SceneCard from './SceneCard.jsx';+vi.mock('../../services/apiRunwayCatalog.js', async (importOriginal) => ({ ...await importOriginal(), loadRunwayCatalog: vi.fn().mockResolvedValue(undefined) }));vi.mock('../../hooks/useVideoFileSrc.js', () => ({ useVideoFileSrc: () => ({ src: null }) }));const contract = { version: 1, purpose: 'The listener decides to stay', startEmotion: 'distrust', endEmotion: 'resolve', activeSpeaker: 'Singer',diff --git a/client/src/components/musicVideo/stages/BoardStage.test.jsx b/client/src/components/musicVideo/stages/BoardStage.test.jsxindex 2700e5084a..fdd36d3747 100644--- a/client/src/components/musicVideo/stages/BoardStage.test.jsx+++ b/client/src/components/musicVideo/stages/BoardStage.test.jsx@@ -5,6 +5,7 @@ import { MemoryRouter, useLocation } from 'react-router';import BoardStage from './BoardStage.jsx';import { ShotLockContext } from '../ShotLock.jsx';+vi.mock('../../../services/apiRunwayCatalog.js', async (importOriginal) => ({ ...await importOriginal(), loadRunwayCatalog: vi.fn().mockResolvedValue(undefined) }));vi.mock('../../../hooks/useVideoFileSrc.js', () => ({ useVideoFileSrc: () => ({}) }));vi.mock('../BeatTimeline.jsx', () => ({ default: () => null }));vi.mock('../ContactSheetButton.jsx', () => ({ default: () => null }));diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex 0a50568683..4774d7bd1d 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -3,6 +3,7 @@* gates on a scene having a generated clip, and clicking it kicks off the render.*/import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';+vi.mock('../services/apiRunwayCatalog.js', async (importOriginal) => ({ ...await importOriginal(), loadRunwayCatalog: vi.fn().mockResolvedValue(undefined) }));import { render, screen, waitFor, fireEvent, within, act } from '@testing-library/react';import { findEnabledByRole } from '../test/enabledBarrier.js';import { MemoryRouter, Routes, Route, useNavigate, useLocation } from 'react-router';diff --git a/server/routes/imageGen.test.js b/server/routes/imageGen.test.jsindex 7caf9a09dc..34c898a55b 100644--- a/server/routes/imageGen.test.js+++ b/server/routes/imageGen.test.js@@ -519,14 +519,14 @@ describe('Image Gen Routes', () => {});// referenceStrengths is the multi-reference companion to the- // multipart referenceImage1..4 uploads. The schema accepts the array on a+ // multipart referenceImage1..16 uploads. The schema accepts the array on a// JSON body too so a future internal caller (no files attached) doesn't// 400 just by listing weights.- it('accepts a referenceStrengths array (0..1, max 4 entries)', async () => {+ it('accepts up to 16 referenceStrengths entries within 0..1', async () => {imageGen.generateImage.mockResolvedValue({ generationId: 'gen-ref', filename: 'r.png', path: '/data/images/r.png' });const response = await request(app).post('/api/image-gen/generate')- .send({ prompt: 'multi-ref', referenceStrengths: [0.8, 0.4] });+ .send({ prompt: 'multi-ref', referenceStrengths: Array(16).fill(0.5) });expect(response.status).toBe(200);});@@ -537,10 +537,10 @@ describe('Image Gen Routes', () => {expect(response.status).toBe(400);});- it('rejects more than 10 referenceStrengths entries', async () => {+ it('rejects more than 16 referenceStrengths entries', async () => {const response = await request(app).post('/api/image-gen/generate')- .send({ prompt: 'multi-ref', referenceStrengths: Array(11).fill(0.5) });+ .send({ prompt: 'multi-ref', referenceStrengths: Array(17).fill(0.5) });expect(response.status).toBe(400);});