Skip to content

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.

699 B
Raw Blame
import { describe, expect, it, vi } from 'vitest';

vi.mock('@features/gallery/queries', () => {
  throw new Error('The Gallery data module must stay behind the reveal dynamic import.');
});

vi.mock('@tanstack/react-query', () => ({ useQueryClient: vi.fn() }));
vi.mock('@workbench/useOpenWorkbenchWidget', () => ({ useOpenWorkbenchWidget: vi.fn() }));
vi.mock('@workbench/WorkbenchContext', () => ({
  useWorkbenchCommands: vi.fn(),
  useWorkbenchQueries: vi.fn(),
}));

describe('useFindGalleryItem lazy boundary', () => {
  it('loads without importing Gallery data queries', async () => {
    await expect(import('./useFindGalleryItem')).resolves.toHaveProperty('useFindGalleryItem');
  });
});