toBeInTheDocument Matcher Not Working in Vitest with @testing-library/jest-dom
I’m having trouble using the toBeInTheDocument matcher with Vitest and @testing-library/jest-dom in my TypeScript project. Even though I have installed and configured everything correctly, I’m still getting the error: