mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
[gitea] 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. (cherry picked from commit 98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb)
This commit is contained in:
parent
4b1b774ccd
commit
02b03247de
2 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue