githaven/vitest.config.js
silverwind 62f3c0fe76
Switch to vite-string-plugin (#25762)
Switch to
[`vite-string-plugin`](https://github.com/silverwind/vite-string-plugin)
to load SVGs as string during tests. The plugin will also be useful once
we switch to vite.
2023-07-08 04:56:12 +00:00

22 lines
489 B
JavaScript

import {defineConfig} from 'vitest/dist/config.js';
import vue from '@vitejs/plugin-vue';
import {stringPlugin} from 'vite-string-plugin';
export default defineConfig({
test: {
include: ['web_src/**/*.test.js'],
setupFiles: ['./web_src/js/test/setup.js'],
environment: 'jsdom',
testTimeout: 20000,
open: false,
allowOnly: true,
passWithNoTests: true,
watch: false,
outputDiffLines: Infinity,
},
plugins: [
stringPlugin(),
vue(),
],
});