fix(api): update jwks-rsa to v4 and configure jest esm transformation - #1062
Merged
Conversation
DerekRoberts
requested review from
OlgaLiber2 and
arcshiftsolutions
as code owners
August 16, 2026 02:31
Contributor
There was a problem hiding this comment.
Pull request overview
Updates API JWKS support to jwks-rsa v4 and adjusts Jest for its ESM dependency.
Changes:
- Upgrades
jwks-rsato v4.1. - Transforms
joseandjwks-rsaduring 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates
jwks-rsato^4.1.0inapiworkspace and configurestransformIgnorePatternsinapi/jest.config.jsto allow Jest to transform ESM modules (jose,jwks-rsa).Resolves the test suite failure seen in Renovate PR #1055.
Changes
api/package.json: updatedjwks-rsadependency to^4.1.0api/jest.config.js: addedtransformIgnorePatterns: ['node_modules/(?!(jose|jwks-rsa)/)']package-lock.json: updated dependencies lockVerification
npm run test-unit --workspace=api(all 14 test suites, 151 tests passing)npm run build:api(successful build)npm run test-unit --workspace=adminandnpm 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: