-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
vitest broken at version 2.32.0 #292
Comments
Can you share more details? What does the Knip config look like? And the Vitest config? Is this in a public repo I can take a look at? |
I'm likewise struggling to upgrade to 2.32.0. Everything works with 2.31.0 but as of 2.32.0 I get 112 issues. I'm not sure if it's related to this because I'm still having a very hard time trying to narrow down what changed. I've compared the debug output from both versions but haven't gotten any clues yet. My knip config and failure log if it's of any interest. |
Knip.ts:
vitest.config.ts:
vite.config.ts:
|
I've pushed a few fixes in v2.33.2, can you please try that and see whether the issues are fixed? Either way, please use code blocks (surround with three backticks) to share your configurations here. |
Did not solve my problem. :S |
🚀 This issue has been resolved in v2.33.3. See Release 2.33.3 for release notes. |
This might fix it, but not 100% sure since I haven't seen a good reproduction. |
Solved it! Thanks so much, I really worship the work you do! |
In that case, to be fair, the Vitest plugin wasn't really working at all in your case, it didn't return any dependencies. I didn't know the Vitest config could be a function. So that's fixed now. But since the test file patterns were a global Knip thing before, it may have seemed to work fine. |
Hi,
I run a vite-project with vitest for testing.
I've done no config for either project in the knip.ts and it all works fine at version 2.31.0.
But when I updated to version 2.32.0 (or newer) it list my test-files as unused.
I see that u done some kind of refactoring for vitest in that version and maybe you broke something.
Br
The text was updated successfully, but these errors were encountered: