Skip to content

[Snyk] Security upgrade @testing-library/jest-dom from 5.16.5 to 6.7.0#22

Open
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-60016867399c2089ab1fec69fe3d4042
Open

[Snyk] Security upgrade @testing-library/jest-dom from 5.16.5 to 6.7.0#22
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-60016867399c2089ab1fec69fe3d4042

Conversation

@snyk-io
Copy link
Copy Markdown

@snyk-io snyk-io bot commented Apr 1, 2026

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • frontend/todo-app-react/package.json
  • frontend/todo-app-react/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Arbitrary Code Injection
SNYK-JS-LODASH-15869625
  183  
medium severity Prototype Pollution
SNYK-JS-LODASH-15869619
  88  

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:

🦉 Prototype Pollution
🦉 Arbitrary Code Injection

…ackage-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-15869625
- https://snyk.io/vuln/SNYK-JS-LODASH-15869619
@snyk-io
Copy link
Copy Markdown
Author

snyk-io bot commented Apr 1, 2026

Merge Risk: High

This major version upgrade from v5 to v6 introduces significant breaking changes related to how the library is imported and how TypeScript types are resolved. Manual configuration changes are required to ensure your test suite continues to work.

Key Breaking Changes:

  • Module Imports: The old extend-expect script is removed. You must now import the library directly in your test setup file (e.g., jest-setup.js or setupTests.ts).
  • TypeScript Type Resolution: Version 6 no longer uses global type declarations. As a result, adding "@testing-library/jest-dom" to the types array in tsconfig.json will no longer work and will likely cause build errors.

Recommendation:

To migrate to v6, you must update your test configuration:

  1. In your tsconfig.json, remove "@testing-library/jest-dom" from the compilerOptions.types array.
  2. In your Jest setup file (e.g., setupTests.ts), add the following import at the top: import '@testing-library/jest-dom';
  3. Ensure your test runner is configured to use this setup file.

Source: Release notes, GitHub Issues

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 requested a review from a team as a code owner April 1, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

0 participants