Skip to content

chore(deps-dev): bump jest from 30.4.2 to 30.5.1 - #920

Merged
unhappychoice merged 1 commit into
mainfrom
chore/bump-jest-30.5.1
Sep 3, 2026
Merged

unhappychoice merged 1 commit into
mainfrom
chore/bump-jest-30.5.1

Conversation

@unhappychoice

@unhappychoice unhappychoice commented Sep 3, 2026 •

Copy link
Copy Markdown
Owner

Supersedes #916, which targets 30.5.0 and fails the test job.

Why 30.5.0 broke test

test/unit/utils/logger.test.ts failed with 7 errors:

ReferenceError: Cannot access 'supportsColor' before initialization
  at node_modules/chalk/source/index.js:8:52

jest 30.5.0 regressed ESM subpath imports. A package's #-prefixed import is not evaluated before the module that imports it, so the imported binding is still in its temporal dead zone when the importer's body runs. src/utils/logger.ts does import('chalk'), and chalk pulls in #supports-color, so every logger.log() / logger.error() call rejects.

Minimal reproduction — a package with imports: { "#inner": "./sub/inner.js" }:

case 30.4.2 30.5.0 30.5.1
await import('chalk') pass fail pass
#subpath import in an ESM package pass fail pass
relative import (control) pass pass pass

The 30.5.0 release notes flag this area: "It touches jest-runtime, jest-resolve and jest-haste-map in many places, and with this many changes there might be regressions."

30.5.1 fixes it, so this bumps straight there rather than working around it in logger.ts.

Verification

  • npm test → logger.test.ts passes (13 suites / 136 tests)
  • npm run lint → 32 suites passed

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the Jest development dependency to version 30.5.1.

Supersedes #916, which targets 30.5.0 and fails `test`.

jest 30.5.0 regressed ESM subpath imports: a package's `#`-prefixed
import is not evaluated before the module importing it, so the binding
is still in its temporal dead zone. chalk hits this through
`#supports-color`, which breaks the dynamic import in src/utils/logger.ts:

    ReferenceError: Cannot access 'supportsColor' before initialization
      at node_modules/chalk/source/index.js:8:52

30.5.1 fixes it.
@netlify

netlify Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for mdts-unhappychoice ready!

Name Link
🔨 Latest commit c508b73
🔍 Latest deploy log https://app.netlify.com/projects/mdts-unhappychoice/deploys/6a98e51fe3f50900087fcc71
😎 Deploy Preview https://deploy-preview-920--mdts-unhappychoice.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 8ca4c8b2-4189-4141-8246-fab68989e68b

📥 Commits

Reviewing files that changed from the base of the PR and between 7f9c284 and c508b73.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The pull request updates the Jest development dependency constraint in package.json from ^30.0.4 to ^30.5.1.

Changes

Jest dependency update

Layer / File(s) Summary
Update Jest version
package.json
The Jest development dependency constraint changes from ^30.0.4 to ^30.5.1.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to c508b

This updates the Jest development dependency to a version that resolves the prior ESM import regression. Tests and lint pass, with no current merge-blocking risk identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the development dependency Jest from 30.4.2 to 30.5.1.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-jest-30.5.1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.21%. Comparing base (7f9c284) to head (c508b73).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #920   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files          71       71           
  Lines        1661     1661           
  Branches      407      404    -3     
=======================================
  Hits         1648     1648           
  Misses         12       12           
  Partials        1        1           
Flag Coverage Δ
frontend 99.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@unhappychoice
unhappychoice merged commit 442855e into main Sep 3, 2026
9 checks passed
@unhappychoice
unhappychoice deleted the chore/bump-jest-30.5.1 branch September 3, 2026 03:12
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