mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-01 13:46:46 -07:00
test(cli): resolve React Context mocking discrepancies and stabilize core layout CI test suites
This commit is contained in:
@@ -40,7 +40,7 @@ describe('<UserIdentity />', () => {
|
||||
vi.spyOn(mockConfig, 'getUserTierName').mockReturnValue(undefined);
|
||||
|
||||
const { lastFrame, unmount } = await renderWithProviders(
|
||||
<UserIdentity config={mockConfig} />,
|
||||
<UserIdentity config={mockConfig} emailOverride="test@example.com" />,
|
||||
);
|
||||
|
||||
const output = lastFrame();
|
||||
@@ -59,7 +59,7 @@ describe('<UserIdentity />', () => {
|
||||
vi.spyOn(mockConfig, 'getUserTierName').mockReturnValue(undefined);
|
||||
|
||||
const { lastFrameRaw, unmount } = await renderWithProviders(
|
||||
<UserIdentity config={mockConfig} />,
|
||||
<UserIdentity config={mockConfig} emailOverride="test@example.com" />,
|
||||
);
|
||||
|
||||
// Assert immediately on the first available frame before any async ticks happen
|
||||
@@ -105,7 +105,7 @@ describe('<UserIdentity />', () => {
|
||||
vi.spyOn(mockConfig, 'getUserTierName').mockReturnValue('Premium Plan');
|
||||
|
||||
const { lastFrame, unmount } = await renderWithProviders(
|
||||
<UserIdentity config={mockConfig} />,
|
||||
<UserIdentity config={mockConfig} emailOverride="test@example.com" />,
|
||||
);
|
||||
|
||||
const output = lastFrame();
|
||||
|
||||
Reference in New Issue
Block a user