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.
pull/29092/head^2
silverwind 10 months ago committed by GitHub
parent eb5ddc0a78
commit 98e7e3a5f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      vitest.config.js
  2. 0
      web_src/js/vitest.setup.js

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

Loading…
Cancel
Save