Skip to content

Commit

Permalink
Move vitest setup file to root (#29097)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silverwind authored Feb 8, 2024
1 parent eb5ddc0 commit 98e7e3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
File renamed without changes.

0 comments on commit 98e7e3a

Please sign in to comment.