mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-24 20:17:03 +01:00
62f3c0fe76
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.
22 lines
489 B
JavaScript
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(),
|
|
],
|
|
});
|