-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Move vitest setup file to root #29097
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
Conversation
I'm using this convention in other projects and I think it makes sense for gitea too because the vitest setup file is loaded globally for all tests, not just ones in web_src, so it makes sense to be in the root.
But the And oppositely personally I would prefer to move files away from the root directory, the root directory has been filled with a lot of various unrelated files already. |
Vitest can not do different setup files for different directories with a single config file. One would have to create multiple config files to achieve that. Thought, I do prefer such files to be in root because they are easy to find. So, not sure how to proceed. I don't really want to move |
Maybe we can compromise on |
I'm using this convention in other projects and I think it makes sense for gitea too because the vitest setup file is loaded globally for all tests, not just ones in web_src, so it makes sense to be in the root.
I'm using this convention in other projects and I think it makes sense for gitea too because the vitest setup file is loaded globally for all tests, not just ones in web_src, so it makes sense to be in the root. (cherry picked from commit 98e7e3a)
I'm using this convention in other projects and I think it makes sense for gitea too because the vitest setup file is loaded globally for all tests, not just ones in web_src, so it makes sense to be in the root.