2026-10-02 22:26:34 -04:00
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
|
|
|
|
|
const backend = 'http://localhost:8080'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': backend,
|
|
|
|
|
'/auth': backend,
|
|
|
|
|
'/media': backend,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
test: {
|
|
|
|
|
environment: 'jsdom',
|
2026-10-03 16:34:59 -04:00
|
|
|
// Inject CSS Modules into jsdom so tests can assert the sizes the
|
|
|
|
|
// stylesheets actually declare (for example 44 px hit areas).
|
|
|
|
|
css: true,
|
2026-10-02 22:26:34 -04:00
|
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
|
|
|
},
|
|
|
|
|
})
|