Skip to content

fix(api): update jwks-rsa to v4 and configure jest esm transformation - #1062

Merged
DerekRoberts merged 3 commits into
mainfrom
fix/api-jwks-rsa-v4
Aug 16, 2026
Merged

fix(api): update jwks-rsa to v4 and configure jest esm transformation#1062
DerekRoberts merged 3 commits into
mainfrom
fix/api-jwks-rsa-v4

Conversation

@DerekRoberts

@DerekRoberts DerekRoberts commented Aug 16, 2026

Copy link
Copy Markdown
Member

Description

Updates jwks-rsa to ^4.1.0 in api workspace and configures transformIgnorePatterns in api/jest.config.js to allow Jest to transform ESM modules (jose, jwks-rsa).

Resolves the test suite failure seen in Renovate PR #1055.

Changes

  • api/package.json: updated jwks-rsa dependency to ^4.1.0
  • api/jest.config.js: added transformIgnorePatterns: ['node_modules/(?!(jose|jwks-rsa)/)']
  • package-lock.json: updated dependencies lock

Verification

  • Ran npm run test-unit --workspace=api (all 14 test suites, 151 tests passing)
  • Ran npm run build:api (successful build)
  • Ran npm run test-unit --workspace=admin and npm run test-unit --workspace=public (all test suites passing)

Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Copilot AI balanced review requested due to automatic review settings August 16, 2026 02:31

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.

Pull request overview

Updates API JWKS support to jwks-rsa v4 and adjusts Jest for its ESM dependency.

Changes:

  • Upgrades jwks-rsa to v4.1.
  • Transforms jose and jwks-rsa during Jest tests.
  • Refreshes the dependency lockfile.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
api/package.json Updates the JWKS dependency.
api/jest.config.js Configures ESM dependency transformation.
package-lock.json Records the updated dependency tree.

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

@DerekRoberts DerekRoberts self-assigned this Aug 16, 2026
@DerekRoberts DerekRoberts moved this from New to Active in DevOps (NR) Aug 16, 2026
@DerekRoberts
DerekRoberts merged commit e54576f into main Aug 16, 2026
36 of 38 checks passed
@DerekRoberts
DerekRoberts deleted the fix/api-jwks-rsa-v4 branch August 16, 2026 05:08
@github-project-automation github-project-automation Bot moved this from Active to Done in DevOps (NR) Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants