Skip to content

Commit 98e7e3a

Browse files
authored
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.
1 parent eb5ddc0 commit 98e7e3a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

vitest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {stringPlugin} from 'vite-string-plugin';
55
export default defineConfig({
66
test: {
77
include: ['web_src/**/*.test.js'],
8-
setupFiles: ['./web_src/js/test/setup.js'],
8+
setupFiles: ['web_src/js/vitest.setup.js'],
99
environment: 'jsdom',
1010
testTimeout: 20000,
1111
open: false,
File renamed without changes.

0 commit comments

Comments
 (0)