diff --git a/.github/workflows/ci-bundling-trial.yml b/.github/workflows/ci-bundling-trial.yml index 92345badd1..bccf597cd6 100644 --- a/.github/workflows/ci-bundling-trial.yml +++ b/.github/workflows/ci-bundling-trial.yml @@ -65,22 +65,4 @@ jobs: run: 'npx vitest run packages/cli' shell: 'bash' - test_integration: - name: 'Test (Linux) - Bundled Integration' - needs: 'build_bundle' - runs-on: 'gemini-cli-ubuntu-16-core' - steps: - - name: 'Checkout' - uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' - - name: 'Setup with Bundle' - uses: './.github/actions/setup-gemini' - with: - mode: 'bundle' - bundle-artifact: 'gemini-bundle' - - - name: 'Run Integration Tests' - env: - GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}' - run: 'npm run test:integration:sandbox:none' - shell: 'bash' diff --git a/packages/cli/src/test-utils/render.tsx b/packages/cli/src/test-utils/render.tsx index f017e677da..47fe653ac1 100644 --- a/packages/cli/src/test-utils/render.tsx +++ b/packages/cli/src/test-utils/render.tsx @@ -263,16 +263,16 @@ class XtermStdout extends EventEmitter { return currentFrame !== '' || this.pendingWrites === 0; } + if (this.lastRenderOutput === undefined) { + return false; + } + // If Ink expects nothing (no new static content and no dynamic output), // we consider it a match because the terminal buffer will just hold the historical static content. if (expectedFrame === '') { return true; } - if (this.lastRenderOutput === undefined) { - return false; - } - // If the terminal is empty but Ink expects something, it's not a match. if (currentFrame === '') { return false; @@ -865,7 +865,7 @@ export async function renderHook( ); inkRerender = renderResult.rerender; unmount = renderResult.unmount; - waitUntilReady = renderResult.waitUntilReady; + waitUntilReady = async () => {}; generateSvg = renderResult.generateSvg; function rerender(props?: Props) {