aboutsummaryrefslogtreecommitdiffstats
path: root/vitest.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-02-08 13:07:02 +0100
committerGitHub <noreply@github.com>2024-02-08 20:07:02 +0800
commit98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb (patch)
tree5c49388100241819879c02de89f443098bb104fe /vitest.config.js
parenteb5ddc0a78ecfe007a6e279a3c59711cdfb3f701 (diff)
downloadgitea-98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb.tar.gz
gitea-98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb.zip
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.
Diffstat (limited to 'vitest.config.js')
-rw-r--r--vitest.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vitest.config.js b/vitest.config.js
index 9a6cb4e560..be6c0eadfa 100644
--- a/vitest.config.js
+++ b/vitest.config.js
@@ -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,