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
test(gallery): mock the hooks the gallery adapter reads in both adapter tests
Josh Corbett629b10ae2de0
diff --git a/invokeai/frontend/webv2/src/app/GalleryUiAdapter.test.tsx b/invokeai/frontend/webv2/src/app/GalleryUiAdapter.test.tsxindex 588bf60a1a..16b612b4fb 100644--- a/invokeai/frontend/webv2/src/app/GalleryUiAdapter.test.tsx+++ b/invokeai/frontend/webv2/src/app/GalleryUiAdapter.test.tsx@@ -38,6 +38,8 @@ vi.mock('@workbench/useOpenWorkbenchWidget', () => ({ useOpenWorkbenchWidget: ()vi.mock('@workbench/WorkbenchContext', () => ({useActiveProjectSelector: (selector: (project: Project) => unknown) => selector(store.getSnapshot().activeProject),useWorkbenchCommands: () => store.commands,+ useWorkbenchInternalStore: () => store,+ useWorkbenchPersistenceService: () => ({ ensureProjectOnServer: () => Promise.resolve() }),useWorkbenchQueries: () => store.queries,}));