Skip to content

Commit 85a8ea6

Browse files
committed
Address jacob's feedback
1 parent 60b29b5 commit 85a8ea6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cli/src/ui/AppContainer.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,13 +1515,13 @@ describe('AppContainer State Management', () => {
15151515
/>,
15161516
);
15171517

1518+
// Verify initial model
15181519
await act(async () => {
1519-
await new Promise((resolve) => setTimeout(resolve, 0));
1520+
await vi.waitFor(() => {
1521+
expect(capturedUIState?.currentModel).toBe('initial-model');
1522+
});
15201523
});
15211524

1522-
// Verify initial model
1523-
expect(capturedUIState.currentModel).toBe('initial-model');
1524-
15251525
// Get the registered handler for ModelChanged
15261526
const handler = mockCoreEvents.on.mock.calls.find(
15271527
(call: unknown[]) => call[0] === CoreEvent.ModelChanged,

0 commit comments

Comments
 (0)