Skip to content

chore: configure jest for ESM dependency compatibility#289

Closed
Copilot wants to merge 5 commits intomainfrom
copilot/fix-ci-dependency-issues
Closed

chore: configure jest for ESM dependency compatibility#289
Copilot wants to merge 5 commits intomainfrom
copilot/fix-ci-dependency-issues

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

Dependency PRs (chalk 5.x, execa 9.x, commander 14.x, etc.) are failing CI because Jest cannot parse ESM-only packages. This PR adds ESM support to the Jest configuration.

Changes

  • jest.config.js: Add transformIgnorePatterns to transform chalk and babel-jest for JS files
  • babel.config.js: New Babel config targeting current Node.js for ESM→CJS transformation
  • package.json: Add @babel/core, @babel/preset-env, babel-jest as dev dependencies

Result

PR Dependency Before After
#282 chalk 4→5 ❌ Jest ESM error ✅ Fixed
#283 execa 5→9 ❌ API changes ❌ Needs code updates
#280 commander 12→14 ❌ Stricter args ❌ Needs code updates

Verified all 549 tests pass with both chalk 4.x and 5.x.

Note

PRs #280 and #283 have breaking API changes requiring source modifications—those cannot be fixed through configuration alone.

Original prompt

examine all the PRs that tagged dependencies and figure out why they are failing. Fix the failed CI


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Mossaka and others added 2 commits January 17, 2026 09:24
@github-actions
Copy link

github-actions bot commented Jan 17, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link

github-actions bot commented Jan 17, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link

github-actions bot commented Jan 17, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR data successfully
  • ✅ Web Access: GitHub page title verified (contains "GitHub")
  • ✅ File Writing: Created /tmp/gh-aw/agent/smoke-test-copilot-21092095603.txt
  • ✅ Bash Tool: File contents verified

Status: PASS

cc: @Mossaka

AI generated by Smoke Copilot

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failed CI for dependency tagged PRs chore: configure jest for ESM dependency compatibility Jan 17, 2026
Copilot AI requested a review from Mossaka January 17, 2026 09:32
@github-actions
Copy link

github-actions bot commented Jan 17, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link

github-actions bot commented Jan 17, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link

github-actions bot commented Jan 17, 2026

📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident...

@github-actions
Copy link

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 77.19% 77.19% ➡️ +0.00%
Statements 77.27% 77.27% ➡️ +0.00%
Functions 77.17% 77.17% ➡️ +0.00%
Branches 69.76% 69.76% ➡️ +0.00%

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions
Copy link

Smoke Test Results

Last 2 merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR list
  • ✅ Playwright: Page title contains "GitHub"
  • ✅ File Write: Created test file successfully
  • ✅ Bash: Verified file contents

Status: PASS

AI generated by Smoke Claude

@Mossaka
Copy link
Collaborator

Mossaka commented Jan 26, 2026

Closing PR to reduce backlog. Created issue #421 to track this work. Will fix it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants