diff options
Diffstat (limited to 'vitest.config.js')
-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(), + ], +}); |