mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-10-11 19:14:27 +00:00
26 lines
680 B
JavaScript
26 lines
680 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// Tailwind's plugin is left out on purpose: the tests check what a page says
|
|
// and links to, not how it looks.
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
environmentOptions: {
|
|
jsdom: { url: 'http://localhost:5173' },
|
|
},
|
|
globals: true,
|
|
setupFiles: ['./tests/setup.js'],
|
|
// The first test to mount a big view pays for compiling it too.
|
|
testTimeout: 20000,
|
|
hookTimeout: 20000,
|
|
},
|
|
})
|