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
@@ -57,7 +57,7 @@ describe('PolicyUpdateDialog', () => {
});
it('renders correctly and matches snapshot', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
const { lastFrame, waitUntilReady } = await renderWithProviders(
<PolicyUpdateDialog
config={mockConfig}
request={mockRequest}
@@ -75,7 +75,7 @@ describe('PolicyUpdateDialog', () => {
});
it('handles ACCEPT correctly', async () => {
const { stdin } = renderWithProviders(
const { stdin } = await renderWithProviders(
<PolicyUpdateDialog
config={mockConfig}
request={mockRequest}
@@ -98,7 +98,7 @@ describe('PolicyUpdateDialog', () => {
});
it('handles IGNORE correctly', async () => {
const { stdin } = renderWithProviders(
const { stdin } = await renderWithProviders(
<PolicyUpdateDialog
config={mockConfig}
request={mockRequest}
@@ -122,7 +122,7 @@ describe('PolicyUpdateDialog', () => {
});
it('calls onClose when Escape key is pressed', async () => {
const { stdin } = renderWithProviders(
const { stdin } = await renderWithProviders(
<PolicyUpdateDialog
config={mockConfig}
request={mockRequest}