mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
test: fix useConsoleMessages tests
This commit is contained in:
@@ -88,7 +88,12 @@ describe('useConsoleMessages', () => {
|
||||
hookResult = useTestableConsoleMessages();
|
||||
return null;
|
||||
}
|
||||
const { unmount } = await render(<TestComponent />);
|
||||
const { unmount } = await render(
|
||||
<TestComponent />,
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
);
|
||||
unmounts.push(unmount);
|
||||
return {
|
||||
result: {
|
||||
@@ -177,7 +182,12 @@ describe('useErrorCount', () => {
|
||||
hookResult = useErrorCount();
|
||||
return null;
|
||||
}
|
||||
const { unmount } = await render(<TestComponent />);
|
||||
const { unmount } = await render(
|
||||
<TestComponent />,
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
);
|
||||
unmounts.push(unmount);
|
||||
return {
|
||||
result: {
|
||||
|
||||
Reference in New Issue
Block a user