57c1888346
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
664 B
TypeScript
27 lines
664 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { readFileSync } from 'node:fs'
|
|
|
|
const { version } = JSON.parse(readFileSync('./package.json', 'utf-8')) as { version: string };
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(version),
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/data/**', 'src/services/**', 'src/components/**'],
|
|
exclude: ['src/types/**'],
|
|
},
|
|
},
|
|
})
|