-
Beta Was this translation helpful? Give feedback.
Answered by
pelargir
Jan 6, 2025
Replies: 1 comment 2 replies
-
I'm getting the exact same error. Baffled as to how to fix it. Any help? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I finally figured out why this was happening.
I had recently renamed my all-lowercase project directory to use camel-case instead (for example, "myproject" became "myProject").
VSCode still had the path as "myproject" so the code in the vitest extension that's designed to detect and avoid recursion when scanning for test files was unable to tell the difference and kept recursing down until it got to the root of my HD.
Removing the project from VSCode and creating a new project by selecting the renamed directory fixed the problem.