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.

fix(webv2): type the identity mock's importActual without an import() annotation

joshistoast4b714b463742
diff --git a/invokeai/frontend/webv2/src/app/AccountLifecycleCoordinator.browser.test.tsx b/invokeai/frontend/webv2/src/app/AccountLifecycleCoordinator.browser.test.tsx
index 495c3f8e8b..b0a98ff792 100644
--- a/invokeai/frontend/webv2/src/app/AccountLifecycleCoordinator.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/app/AccountLifecycleCoordinator.browser.test.tsx
@@ -1,3 +1,5 @@
+import type * as identityModule from '@features/identity';
+
import { RouterProvider } from '@tanstack/react-router';
import { act } from 'react';
import { createRoot, type Root } from 'react-dom/client';
@@ -76,7 +78,7 @@ vi.mock('@features/identity', async () => {
// Modules outside this test's mock map (reached via other import specifiers)
// still bind real identity exports — spread them so the mock only overrides
// what the test drives instead of rotting on every new identity export.
- const actual = await vi.importActual<typeof import('@features/identity')>('@features/identity');
+ const actual = await vi.importActual<typeof identityModule>('@features/identity');
return {
...actual,