Skip to content

chore(dynatrace): migrate to Jest 30 - #11987

Merged
hopehadfield merged 1 commit into
backstage:mainfrom
armnkumar321-spec:fix/7868-dynatrace-jest-30-migration
Nov 9, 2026
Merged

hopehadfield merged 1 commit into
backstage:mainfrom
armnkumar321-spec:fix/7868-dynatrace-jest-30-migration

Conversation

@armnkumar321-spec

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Part of #7868. Moves the dynatrace workspace tests from Jest 29 to Jest 30, following the steps in the issue.

  • Added jest@^30, @types/jest@^30, @jest/environment-jsdom-abstract@^30 and jsdom@^27 to the workspace root devDependencies. Yarn added @types/jsdom@^27 with jsdom, the same set as periskop, gcalendar and tech-radar.
  • Ran yarn dedupe: the Jest 30 tree left duplicate transitive versions that verify-lockfile-duplicates.js rejects. No @backstage/* versions changed.
  • No test or plugin code changes were needed, so there's no changeset (only workspace root devDependencies and yarn.lock changed).

Checked locally on Node 24 in workspaces/dynatrace:

  • ./node_modules/.bin/backstage-cli repo test --version → 0.36.7, and @backstage/cli resolves jest 30.5.2
  • yarn tsc:full passes
  • yarn test → 7 suites, 15 tests pass (same counts as on Jest 29 before the change)
  • yarn prettier:check, yarn build:knip-reports --ci, yarn build:api-reports:only --ci, yarn backstage-cli repo build --all, yarn backstage-cli repo lint, yarn fix --check / --check --publish, the lockfile-duplicates script and verify-changesets.js all pass

Prepared with help from Claude Code.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Add jest, @types/jest, @jest/environment-jsdom-abstract and jsdom 27 as
workspace devDependencies so backstage-cli runs the tests on Jest 30.
yarn added @types/jsdom alongside jsdom. The lockfile is deduped so the
lockfile duplicates check passes.

Refs backstage#7868

Signed-off-by: Aman Kumar <[email protected]>

@hopehadfield hopehadfield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks @armnkumar321-spec!

@hopehadfield
hopehadfield merged commit 40ee17e into backstage:main Nov 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants