refactor(cli): integrate real config loading into async test utils (#23040)

This commit is contained in:
Tommaso Sciortino
2026-03-19 17:05:33 +00:00
committed by GitHub
parent 8948c58b04
commit c59bc33ac4
103 changed files with 1806 additions and 1541 deletions
@@ -32,7 +32,7 @@ const mockTools: ToolDefinition[] = [
describe('<ToolsList />', () => {
it('renders correctly with descriptions', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
const { lastFrame, waitUntilReady } = await renderWithProviders(
<ToolsList
tools={mockTools}
showDescriptions={true}
@@ -44,7 +44,7 @@ describe('<ToolsList />', () => {
});
it('renders correctly without descriptions', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
const { lastFrame, waitUntilReady } = await renderWithProviders(
<ToolsList
tools={mockTools}
showDescriptions={false}
@@ -56,7 +56,7 @@ describe('<ToolsList />', () => {
});
it('renders correctly with no tools', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
const { lastFrame, waitUntilReady } = await renderWithProviders(
<ToolsList tools={[]} showDescriptions={true} terminalWidth={40} />,
);
await waitUntilReady();