0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 15:31:06 +01:00

Move vitest setup file to root (#29097)

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.
This commit is contained in:
silverwind 2024-02-08 13:07:02 +01:00 committed by GitHub
parent eb5ddc0a78
commit 98e7e3a5f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -5,7 +5,7 @@ import {stringPlugin} from 'vite-string-plugin';
export default defineConfig({
test: {
include: ['web_src/**/*.test.js'],
setupFiles: ['./web_src/js/test/setup.js'],
setupFiles: ['web_src/js/vitest.setup.js'],
environment: 'jsdom',
testTimeout: 20000,
open: false,