React Testing Library is a plugin for Vitest and Jest that allows you to test your UI using those two. It simulates the DOM using jsdom. It provides you with assertions that allow you to assert DOM elements.
Code Snippet - Component Test with RTL
React Testing Library Queries
Testing React Hooks