@testing-library/react version 11.0.4 is a minor patch release focusing on improvements and dependency updates for React DOM testing. This release builds upon the foundational utilities for testing React components established in version 11.0.3, encouraging best practices in testing by interacting with your components as a user would.
The key difference between the two versions lies in the updated dependencies. Version 11.0.4 upgrades "@testing-library/dom" from version 7.23.0 to 7.24.2. This updated dependency likely brings improvements and bug fixes from the underlying DOM testing library, potentially addressing edge cases or enhancing the accuracy of simulated user interactions. While the core API of @testing-library/react remains consistent, developers benefit from the refinements and stability improvements incorporated within the updated "@testing-library/dom". This ensures a smoother and more reliable testing experience.
Both versions share the same core purpose of providing a simple and complete set of React DOM testing utilities. Developers can confidently utilize the tools whether to upgrade to get the latest bug fixes and minor updates. Key features for developers include utilities for querying elements based on role, text content, or other user-centric attributes, simulating user events like clicks and typing, and making assertions about the state and behavior of React components. This facilitates writing tests that are resilient to implementation details and focus on verifying the correct user experience. They also make use of peer dependencies on React and React DOM.
The are not vulnerabilities for the version 11.0.4 of the package @testing-library/react