Skip to content

#6560 - Upgrade NestJS and fix compatibility issues - #6762

Open
tiago-graf wants to merge 3 commits into
mainfrom
feature/#6560-nestjs-upgrade
Open

tiago-graf wants to merge 3 commits into
mainfrom
feature/#6560-nestjs-upgrade

Conversation

@tiago-graf

Copy link
Copy Markdown
Collaborator

Summary

Upgrade NestJS to 12.1.3.
Set NODE_OPTIONS=--experimental-vm-modules so Jest can load the ESM-only NestJS 12 packages.
zeebe-health-indicator.ts: Replaced the removed Terminus HealthIndicator and HealthCheckError with HealthIndicatorService and up/down results.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 23:48

Copilot AI 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.

🔵 Needs a closer look

The major framework and ESM upgrade needs build, test, startup, and worker-readiness validation before approval.

0 open findings

What changed in this PR

Upgrades the SIMS backend to NestJS 12.1.3 and adapts testing and worker health checks for compatibility.

Changes:

  • Updates NestJS dependencies and adds explicit webpack tooling dependencies.
  • Enables VM modules for Jest and skips dependency transformation.
  • Migrates Zeebe health reporting to HealthIndicatorService and adjusts a test-helper import.
File Description
sources/​packages/​backend/​package.json Updates dependencies and Jest commands.
sources/​packages/​backend/​package-lock.json Locks the updated dependency tree.
sources/​packages/​backend/​jest-unit-tests.json Excludes dependencies from transformation.
sources/​packages/​backend/​jest-e2e.json Applies the same exclusion to integration tests.
sources/​packages/​backend/​apps/​workers/​src/​zeebe/​zeebe-health-indicator.ts Uses Terminus up/down health results.
sources/​packages/​backend/​apps/​api/​src/​testHelpers/​moked-http-contexts/​http-context-mock.ts Uses an explicit interface import path.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 71.31% ( 15735 / 22067 )
Methods: 68.86% ( 1871 / 2717 )
Lines: 74.21% ( 11146 / 15019 )
Branches: 62.76% ( 2718 / 4331 )

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.31% ( 5120 / 25210 )
Methods: 9.87% ( 302 / 3061 )
Lines: 24.61% ( 4333 / 17609 )
Branches: 10.68% ( 485 / 4540 )

@github-actions

Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 48.51% ( 2989 / 6161 )
Methods: 38.57% ( 314 / 814 )
Lines: 55.28% ( 2255 / 4079 )
Branches: 33.12% ( 420 / 1268 )

@github-actions

Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 81.23% ( 10173 / 12523 )
Methods: 81% ( 1330 / 1642 )
Lines: 84.59% ( 7586 / 8968 )
Branches: 65.71% ( 1257 / 1913 )

This branch has not been deployed

No deployments
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