Repository navigation
chore(deps-dev): bump jest from 30.4.2 to 30.5.1 - #920
Conversation
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.
✅ Deploy Preview for mdts-unhappychoice ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe pull request updates the Jest development dependency constraint in ChangesJest dependency update
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to 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)
Full details: Docstring CoverageExplanation 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)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Supersedes #916, which targets 30.5.0 and fails the
testjob.Why 30.5.0 broke
testtest/unit/utils/logger.test.tsfailed with 7 errors: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.tsdoesimport('chalk'), and chalk pulls in#supports-color, so everylogger.log()/logger.error()call rejects.Minimal reproduction — a package with
imports: { "#inner": "./sub/inner.js" }:await import('chalk')#subpathimport in an ESM packageThe 30.5.0 release notes flag this area: "It touches
jest-runtime,jest-resolveandjest-haste-mapin 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.tspasses (13 suites / 136 tests)npm run lint→ 32 suites passed🤖 Generated with Claude Code
Summary by CodeRabbit