Skip to content

Commit 28cb379

Browse files
committed
test(console): the boot manifest pin loads its module graph at module top
Claude-Session: https://claude.ai/code/session_01QsR2jSpg4SQPs6XFLsrBhv Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0428b9e commit 28cb379

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/apps/console/src/__tests__/main.nativeBridgeVersion-29330.test.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ vi.mock('../registerApprovalsComponents', () => ({}));
8383
vi.mock('../registerSystemComponents', () => ({}));
8484
vi.mock('../registerChatbotComponents', () => ({}));
8585

86+
// Pay the heavy graph's first load here, at module top, so the clocked test
87+
// windows below measure the boot's decision and not module loading. Each case
88+
// then re-runs `main.tsx` itself against these already-loaded modules.
89+
await import('@object-ui/app-shell');
90+
await import('@object-ui/components');
91+
8692
const BLOB_MANIFEST = 'blob:generated-manifest';
8793

8894
function installBridge(version: number): void {

0 commit comments

Comments
 (0)