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 7de0616229
commit 23264ced9a
103 changed files with 1806 additions and 1541 deletions

View File

@@ -23,7 +23,7 @@ describe('RewindConfirmation', () => {
details: [{ fileName: 'test.ts', diff: '' }],
};
const onConfirm = vi.fn();
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
const { lastFrame, waitUntilReady, unmount } = await renderWithProviders(
<RewindConfirmation
stats={stats}
onConfirm={onConfirm}
@@ -40,7 +40,7 @@ describe('RewindConfirmation', () => {
it('renders correctly without stats', async () => {
const onConfirm = vi.fn();
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
const { lastFrame, waitUntilReady, unmount } = await renderWithProviders(
<RewindConfirmation
stats={null}
onConfirm={onConfirm}
@@ -58,7 +58,7 @@ describe('RewindConfirmation', () => {
it('calls onConfirm with Cancel on Escape', async () => {
const onConfirm = vi.fn();
const { stdin, waitUntilReady, unmount } = renderWithProviders(
const { stdin, waitUntilReady, unmount } = await renderWithProviders(
<RewindConfirmation
stats={null}
onConfirm={onConfirm}
@@ -81,7 +81,7 @@ describe('RewindConfirmation', () => {
it('renders timestamp when provided', async () => {
const onConfirm = vi.fn();
const timestamp = new Date().toISOString();
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
const { lastFrame, waitUntilReady, unmount } = await renderWithProviders(
<RewindConfirmation
stats={null}
onConfirm={onConfirm}