mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
/// <reference types="vitest" />
|
|
/// <reference types="vite/client" />
|
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
|
import { defineViteConfig } from 'vite-config'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
|
|
export default mergeConfig(
|
|
defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
name: 'tuono-router',
|
|
environment: 'happy-dom',
|
|
globals: true,
|
|
},
|
|
}),
|
|
defineViteConfig({
|
|
entry: './src/index.ts',
|
|
}),
|
|
)
|