Skip to content

test: add CJS/ESM dual-package compatibility tests#598

Merged
alexander-akait merged 1 commit into
mainfrom
claude/add-cjs-esm-tests-UeWN2
May 20, 2026
Merged

test: add CJS/ESM dual-package compatibility tests#598
alexander-akait merged 1 commit into
mainfrom
claude/add-cjs-esm-tests-UeWN2

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

Mirrors the cjs.test.js suite from webpack/sass-loader: builds a
CommonJS bundle from src/ at test time via @babel/core and asserts the
shape promised by the build:cjs pipeline (commonjs package marker,
strict-mode prologue, exports.default unwrap) so require() returns the
loader function with .default pointing back at itself, matching the
ESM default export.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 20, 2026

CLA Not Signed

Mirrors the cjs.test.js suite from webpack/sass-loader: builds a
CommonJS bundle from src/ at test time via @babel/core and asserts the
shape promised by the build:cjs pipeline (commonjs package marker,
strict-mode prologue, exports.default unwrap) so require() returns the
loader function with .default pointing back at itself, matching the
ESM default export.
@alexander-akait alexander-akait force-pushed the claude/add-cjs-esm-tests-UeWN2 branch from b163f32 to 4b4e5c8 Compare May 20, 2026 13:03
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.94%. Comparing base (e055dde) to head (4b4e5c8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #598   +/-   ##
=======================================
  Coverage   96.94%   96.94%           
=======================================
  Files           2        2           
  Lines         556      556           
=======================================
  Hits          539      539           
  Misses         17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait alexander-akait merged commit e112e32 into main May 20, 2026
13 of 14 checks passed
@alexander-akait alexander-akait deleted the claude/add-cjs-esm-tests-UeWN2 branch May 20, 2026 13:11
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