Skip to content

fix(test): --experimental-vm-modulesを追加してJest + AWS SDK ESMエラーを修正#777

Closed
j5ik2o wants to merge 1 commit into
mainfrom
fix/build-errors-2025-02-13
Closed

fix(test): --experimental-vm-modulesを追加してJest + AWS SDK ESMエラーを修正#777
j5ik2o wants to merge 1 commit into
mainfrom
fix/build-errors-2025-02-13

Conversation

@j5ik2o
Copy link
Copy Markdown
Owner

@j5ik2o j5ik2o commented Mar 30, 2026

全パッケージのtestスクリプトで@aws-sdk v3のdynamic importによる
ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAGエラーを解消する。


Note

Low Risk
Low risk: only changes how tests are executed (Node flag), with no production code or runtime behavior changes.

Overview
Ensures the monorepo’s Jest runs in an ESM-compatible mode by updating each package’s test script to invoke jest via node --experimental-vm-modules.

This is intended to prevent ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG failures when tests hit ESM/dynamic imports (notably @aws-sdk v3).

Written by Cursor Bugbot for commit 30cfdef. This will update automatically on new commits. Configure here.

全パッケージのtestスクリプトで@aws-sdk v3のdynamic importによる
ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAGエラーを解消する。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 30, 2026

Image description CodeRabbit


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

@j5ik2o j5ik2o closed this Mar 30, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between c700227 and 30cfdef commits.
Files selected (8)
  • packages/bootstrap/package.json (1)
  • packages/command/domain/package.json (1)
  • packages/command/interface-adaptor-if/package.json (1)
  • packages/command/interface-adaptor-impl/package.json (1)
  • packages/command/processor/package.json (1)
  • packages/infrastructure/package.json (1)
  • packages/query/interface-adaptor/package.json (1)
  • packages/rmu/package.json (1)
Files not summarized due to errors (8)
  • packages/command/interface-adaptor-impl/package.json (nothing obtained from openai)
  • packages/infrastructure/package.json (nothing obtained from openai)
  • packages/command/domain/package.json (nothing obtained from openai)
  • packages/command/interface-adaptor-if/package.json (nothing obtained from openai)
  • packages/command/processor/package.json (nothing obtained from openai)
  • packages/bootstrap/package.json (nothing obtained from openai)
  • packages/query/interface-adaptor/package.json (nothing obtained from openai)
  • packages/rmu/package.json (nothing obtained from openai)
Files not reviewed due to errors (8)
  • packages/command/domain/package.json (no response)
  • packages/infrastructure/package.json (no response)
  • packages/command/processor/package.json (no response)
  • packages/command/interface-adaptor-impl/package.json (no response)
  • packages/command/interface-adaptor-if/package.json (no response)
  • packages/bootstrap/package.json (no response)
  • packages/rmu/package.json (no response)
  • packages/query/interface-adaptor/package.json (no response)
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

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.

1 participant