Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import type { GalleryVideoItem } from '@features/gallery/contracts';
import { getGenerationSelectedGalleryImage } from '@app/GenerationUiAdapter';
import { getWorkflowSelectedGalleryImage } from '@features/workflow/ui/fields/WorkflowFieldInput';
import { describe, expect, it } from 'vitest';
const selectedVideo: GalleryVideoItem = {
boardId: 'board-1',
category: 'general',
createdAt: '2026-07-30T00:00:00.000Z',
durationSeconds: 3,
fullUrl: '/videos/selected',
height: 720,
isIntermediate: false,
kind: 'video',
name: 'selected',
starred: false,
thumbnailUrl: '/videos/selected/thumbnail',
width: 1280,
};
describe('direct image-only Gallery consumers', () => {
it('keeps a selected video out of GenerationUiAdapter', () => {
expect(getGenerationSelectedGalleryImage({ selectedImage: selectedVideo })).toBeNull();
});
it('keeps a selected video out of WorkflowFieldInput', () => {
expect(getWorkflowSelectedGalleryImage({ selectedImage: selectedVideo })).toBeNull();
});
});