Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run vitest if there's a Link component inside a deeply nested component #3470

Open
xeoneux opened this issue Feb 18, 2025 · 0 comments

Comments

@xeoneux
Copy link

xeoneux commented Feb 18, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant