diff options
author | silverwind <me@silverwind.io> | 2024-02-08 13:07:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 20:07:02 +0800 |
commit | 98e7e3a5f07b8bc620e26bc1ab6f7a86bccbb7cb (patch) | |
tree | 5c49388100241819879c02de89f443098bb104fe /vitest.config.js | |
parent | eb5ddc0a78ecfe007a6e279a3c59711cdfb3f701 (diff) | |
download | gitea-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.js | 2 |
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, |