Skip to content

[Snyk] Security upgrade jest from 29.7.0 to 30.3.0 - #58

Closed
snyk-io[bot] wants to merge 1 commit into
mainfrom
snyk-fix-c88fcb4a71eb78350c385ff5e6e3385d
Closed

snyk-io[bot] wants to merge 1 commit into
mainfrom
snyk-fix-c88fcb4a71eb78350c385ff5e6e3385d

Conversation

@snyk-io

@snyk-io snyk-io Bot commented Oct 19, 2026

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pnpm dependencies of this project.

Snyk changed the following file(s):

  • packages/cli/package.json
⚠️ Warning
Failed to update the pnpm-lock.yaml, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PICOMATCH-21248802
  125  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

@snyk-io

snyk-io Bot commented Oct 19, 2026

Copy link
Copy Markdown
Author

Merge Risk: High

This major version upgrade from Jest v29 to v30 introduces several significant breaking changes that require developer action.

Required Code Changes

  • Removed Matcher Aliases: Deprecated matcher aliases have been removed. You must replace them with their canonical names. For example, toBeCalled() must be updated to toHaveBeenCalled(). [3] The eslint-plugin-jest package provides an autofixer for this. [1]
  • Matcher Behavior: expect.objectContaining() no longer works with arrays, and non-enumerable properties are now excluded from object matchers like toEqual by default. [1, 6]
  • Snapshot Updates: Internal formatting changes, such as removing deprecated goo.gl links, will require snapshots to be updated. [1, 3]

Environment and Configuration Changes

  • Node.js Support: Support for Node.js versions 14, 16, 19, and 21 has been dropped. The minimum required version is now 18.x. [3, 4]
  • TypeScript Support: The minimum required TypeScript version is now 5.4. [2, 3]
  • CLI Option Renamed: The --testPathPattern CLI option has been renamed to --testPathPatterns and now accepts a list of patterns. [1, 8]

Recommendation: Before merging, developers must update their test files to use the new matcher names and verify compatibility with the updated matcher behavior. It is also crucial to ensure the development and CI/CD environments meet the new Node.js and TypeScript version requirements. Running tests and updating snapshots will be a necessary step.

Source: Jest 30 Migration Guide, Jest 30 Blog Post

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io

snyk-io Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Author

⛔ Snyk checks have failed. 26 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (26)
⛔ Open Source Security 6 20 0 0 26 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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