Skip to content

chore: bump jest and @types/jest to v30 - #475

Open
kentkwu wants to merge 1 commit into
apache:mainfrom
kentkwu:chore/bump-jest-30
Open

chore: bump jest and @types/jest to v30#475
kentkwu wants to merge 1 commit into
apache:mainfrom
kentkwu:chore/bump-jest-30

Conversation

@kentkwu

@kentkwu kentkwu commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Supersedes the stale dependabot PR #414, which failed CI on jest 30's dropped compat and has had auto-rebases disabled for >30 days. Two additional fixes on top of the version bumps are needed to get the test matrix green.

  • package.json / package-lock.json — jest 29.7.0 -> 30.3.0, @types/jest 29.5.14 -> 30.0.0, and ts-jest 29.1.4 -> 29.4.12 (first ts-jest release with jest ^30 peer support)
  • test/tsconfig/tsconfig.apache-arrow.jsonmodule: CommonJS -> NodeNext, matching every other ESM test tsconfig. ts-jest 29.4 no longer rewrites module: CommonJS to ESM under useESM: true, so the mismatched pair emitted CJS output that jest then loaded as ESM, crashing every test:apache-arrow suite with ReferenceError: exports is not defined.

No runtime dependencies changed and no src/ files were touched, so there is no client-visible surface change.

Test Plan

  • npm run lint:ci
  • npm run build
  • npm test — all 13 targets (ts, src, apache-arrow, es5/es2015/esnext x cjs/esm/umd) pass
  • npm run test:bundle — esbuild, rollup, and webpack bundles built and executed clean

Related

Bumps jest 29.7.0 -> 30.3.0 and @types/jest 29.5.14 -> 30.0.0
(from dependabot apache#414), which also requires bumping ts-jest
29.1.4 -> 29.4.12 for jest ^30 peer support.

ts-jest 29.4 no longer silently rewrites `module: CommonJS`
to ESM when `useESM: true`, so `test/tsconfig/tsconfig.apache-arrow.json`
now uses `module: NodeNext` like every other ESM test tsconfig.
Without this, every suite in test:apache-arrow crashes with
`ReferenceError: exports is not defined`.
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