-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 is broken in Astro v5 #12723
Comments
Hello @sarthikg. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Please provide a minimal reproduction, a project isn't acceptable |
Closing as a duplicate of #12662. It's correct that this is related to Vitest not working properly with Vite 6. There is more info in this issue: vitest-dev/vitest#6992 |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
As per the (docs)[https://docs.astro.build/en/guides/testing/#vitest], configuring Vitest in Astro can be done by creating a
vitest.config.ts
file, with the following contents:Though, after upgrading to Astro v5, this doesn't seem to be working anymore. The build is failing, as well as execution of tests are failing.
Error is as follows:
What's the expected result?
The tests & build should be run.
Link to Minimal Reproducible Example
sarthikg/portfolio#255
Participation
The text was updated successfully, but these errors were encountered: