Which project does this relate to?
Router
Describe the bug
I am not able to run tests using vitest if a nested component has the Link component
The error I'm getting is Error: Invariant failed: Could not find a nearest match!
Your Example Website or App
https://stackblitz.com/edit/github-qqnqjkea
Steps to Reproduce the Bug or Issue
https://stackblitz.com/edit/github-qqnqjkea
Expected behavior
The test should run without causing the above-mentioned error
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: happy-dom
Additional context
No response