Skip to content

Commit 9914c31

Browse files
committed
test(console): the checklist test inherits the real app-shell surface in its mock (#30206)
Claude-Session: https://claude.ai/code/session_01L6bhgVwQZbHRRM9CaXeKif Co-authored-by: Claude <noreply@anthropic.com>
1 parent df45b9d commit 9914c31

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎ui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ vi.mock('@object-ui/auth', async (importOriginal) => ({
4343
useAuth: () => AUTH,
4444
}));
4545
vi.mock('sonner', () => ({ toast: { error: toastError, success: toastSuccess } }));
46-
// The barrel would transform the whole app shell; the checklist reads two names
47-
// from it, and `i18nSession` (through `loadLocales`) one more.
48-
vi.mock('@object-ui/app-shell', async () => ({
49-
...(await vi.importActual<Record<string, unknown>>(
50-
'../../../../../../packages/app-shell/src/observability/settleSignal',
51-
)),
46+
// The checklist reads the apps (for the Setup app's path) from the metadata
47+
// provider; the real surface is inherited and only that read is stubbed.
48+
vi.mock('@object-ui/app-shell', async (importOriginal) => ({
49+
...(await importOriginal<Record<string, unknown>>()),
5250
useMetadata: () => ({ apps: [], objects: [], loading: false, error: null, refresh: async () => {} }),
5351
resolveSetupAppPath: () => '/apps/setup',
5452
}));

0 commit comments

Comments
 (0)