From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- vitest.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vitest.config.js (limited to 'vitest.config.js') 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(), + ], +}); -- cgit v1.2.3