diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-18 20:33:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 23:57:56 +0100 |
commit | e68b9d00a6e05b3a941f63ffb696f91e554ac5ec (patch) | |
tree | 97775d6c13b0f416af55314eb6a89ef792474615 /vitest.config.js | |
parent | Initial commit. (diff) | |
download | forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.tar.xz forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.zip |
Adding upstream version 9.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rw-r--r-- | vitest.config.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 0000000..776247c --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,25 @@ +import {defineConfig} from 'vitest/config'; +import vuePlugin from '@vitejs/plugin-vue'; +import {stringPlugin} from 'vite-string-plugin'; +import {resolve} from 'node:path'; + +export default defineConfig({ + test: { + include: ['web_src/**/*.test.js'], + setupFiles: ['web_src/js/vitest.setup.js'], + environment: 'happy-dom', + testTimeout: 20000, + open: false, + allowOnly: true, + passWithNoTests: true, + globals: true, + watch: false, + alias: { + 'monaco-editor': resolve(import.meta.dirname, '/node_modules/monaco-editor/esm/vs/editor/editor.api'), + }, + }, + plugins: [ + stringPlugin(), + vuePlugin(), + ], +}); |