Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

CLI tests fail when importing from @objectstack/core because Jest cannot parse ES modules from node_modules by default.

Changes

Updated packages/tools/cli/jest.config.js to transform ES modules:

  • Added transformIgnorePatterns: Allow transformation of @objectstack and .pnpm packages from node_modules
  • Extended transform pattern: Changed regex from ^.+\\.ts$ to ^.+\\.(t|j)sx?$ to handle JavaScript files
  • Added tsconfig options: esModuleInterop, allowSyntheticDefaultImports, and allowJs for ES module compatibility

Configuration now matches the pattern established in packages/foundation/core/jest.config.js.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fastdl.mongodb.org
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/objectql/objectql/node_modules/.pnpm/jest-worker@30.2.0/node_modules/jest-worker/build/processChild.js (dns block)
  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/objectql/objectql/apps/site/node_modules/.bin/../next/dist/bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

引用: https://github.com/objectstack-ai/objectql/actions/runs/21470580783/job/61841913984#step:10:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectql Ready Ready Preview, Comment Jan 29, 2026 8:24am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update actions run for job 61841913984 Fix CLI Jest configuration to handle ES modules from @objectstack packages Jan 29, 2026
Copilot AI requested a review from hotlong January 29, 2026 08:27
@github-actions
Copy link
Contributor

⚠️ No Changeset Found

This PR does not include a changeset file.
If this PR includes user-facing changes, please add a changeset by running:

pnpm changeset

@hotlong hotlong marked this pull request as ready for review January 29, 2026 10:38
Copilot AI review requested due to automatic review settings January 29, 2026 10:38
@hotlong hotlong merged commit 5cbd979 into copilot/fix-runtimeplugin-issues Jan 29, 2026
6 checks passed
@hotlong hotlong deleted the copilot/update-actions-run-21470580783 branch January 29, 2026 10:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Jest configuration in the CLI package to handle ES module imports from @objectstack packages. The tests were failing because Jest couldn't parse ES modules from node_modules by default.

Changes:

  • Updated transform pattern to handle both TypeScript and JavaScript files (^.+\\.(t|j)sx?$)
  • Added transformIgnorePatterns to allow transformation of @objectstack and .pnpm packages
  • Extended tsconfig options with esModuleInterop, allowSyntheticDefaultImports, and allowJs

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