mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-27 10:20:48 +08:00
82979588f4
Use `happy-dom` again in vitest as it has caught up recently to `jsdom` in terms of features and it is a much more lightweight solution. I encountered [one bug](https://github.com/capricorn86/happy-dom/issues/1342), but it's an easy workaround until fixed. I regenerated the lockfile to get rid of the transitive dependencies so that's why the diff also has some upgrades in it. In total, this change removes 39 npm dependencies.
22 lines
485 B
JavaScript
22 lines
485 B
JavaScript
import {defineConfig} from 'vitest/config';
|
|
import vuePlugin from '@vitejs/plugin-vue';
|
|
import {stringPlugin} from 'vite-string-plugin';
|
|
|
|
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,
|
|
},
|
|
plugins: [
|
|
stringPlugin(),
|
|
vuePlugin(),
|
|
],
|
|
});
|