mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +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.
21 lines
489 B
JavaScript
21 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(),
|
|
],
|
|
});
|