2024-08-11 17:14:54 +02:00
|
|
|
/// <reference types="vitest" />
|
|
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
2025-02-16 15:39:25 +01:00
|
|
|
import { defineViteConfig } from 'vite-config'
|
2024-12-23 18:20:29 +01:00
|
|
|
import react from '@vitejs/plugin-react-swc'
|
2024-08-11 17:14:54 +02:00
|
|
|
|
|
|
|
|
export default mergeConfig(
|
2025-02-16 15:39:25 +01:00
|
|
|
defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
|
|
|
|
name: 'tuono-router',
|
|
|
|
|
environment: 'happy-dom',
|
|
|
|
|
globals: true,
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
defineViteConfig({
|
2024-08-11 17:14:54 +02:00
|
|
|
entry: './src/index.ts',
|
|
|
|
|
}),
|
|
|
|
|
)
|