mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 10:10:56 -07:00
test(cli): refactor tests for async render utilities (#23252)
This commit is contained in:
committed by
GitHub
parent
86a3a913b5
commit
6c78eb7a39
@@ -89,10 +89,9 @@ describe('useSelectionList', () => {
|
||||
hookResult = useSelectionList(props);
|
||||
return null;
|
||||
}
|
||||
const { rerender, unmount, waitUntilReady } = render(
|
||||
const { rerender, unmount, waitUntilReady } = await render(
|
||||
<TestComponent {...initialProps} />,
|
||||
);
|
||||
await waitUntilReady();
|
||||
|
||||
return {
|
||||
result: {
|
||||
@@ -1102,10 +1101,9 @@ describe('useSelectionList', () => {
|
||||
});
|
||||
return null;
|
||||
}
|
||||
const { rerender, waitUntilReady } = render(
|
||||
const { rerender, waitUntilReady } = await render(
|
||||
<TestComponent {...initialProps} />,
|
||||
);
|
||||
await waitUntilReady();
|
||||
|
||||
return {
|
||||
rerender: async (newProps: Partial<typeof initialProps>) => {
|
||||
|
||||
Reference in New Issue
Block a user