Skip to content

Fix shell_and_cli Windows CI: exclude jest unit tests from Playwright runner#2040

Merged
robgruen merged 2 commits intodev/robgruen/glasswormfrom
copilot/fix-shell-and-cli-workflow
Mar 22, 2026
Merged

Fix shell_and_cli Windows CI: exclude jest unit tests from Playwright runner#2040
robgruen merged 2 commits intodev/robgruen/glasswormfrom
copilot/fix-shell-and-cli-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 22, 2026

The partialCompletion/*.spec.ts jest unit tests landed inside testDir: "./test", causing Playwright to pick them up on Windows (shell:test runs the full suite) and fail immediately:

SyntaxError: The requested module '@jest/globals' does not provide an export named 'jest'

Linux was unaffected because its CI step runs shell:smoke (simple.spec.ts only).

Changes

  • playwright.config.ts — add testIgnore: ["**/partialCompletion/**"] to exclude the jest-based unit tests from Playwright's test discovery.
  • package.json — update shell:test to pnpm run jest-esm && npx playwright test so the partialCompletion tests still run in CI via jest (compiled to dist/test/partialCompletion/ by tsc:model as part of the build step).
Original prompt

Fix the failing GitHub Actions workflow shell_and_cli (windows-latest, 22)
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 68096986347
Job URL: https://github.com/microsoft/TypeAgent/actions/runs/23410586826/job/68096986347


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…aywright runner

Co-authored-by: robgruen <25374553+robgruen@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/TypeAgent/sessions/06ec6d6c-6e2a-4934-ba48-2d72f6de5e5d
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow shell_and_cli Fix shell_and_cli Windows CI: exclude jest unit tests from Playwright runner Mar 22, 2026
@robgruen robgruen marked this pull request as ready for review March 22, 2026 19:44
Copilot AI requested a review from robgruen March 22, 2026 19:44
@robgruen robgruen merged commit 81c27af into dev/robgruen/glassworm Mar 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants