utopia-ui/vite.config.ts
Moriz Wahl c1eafc9a0f
feat(source): test text area input (#155)
* unit tests for text area input component
2025-02-25 20:21:06 +01:00

25 lines
585 B
TypeScript

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
import { configDefaults } from 'vitest/config'
export default defineConfig({
plugins: [react(), svgr()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['setupTest.ts'],
coverage: {
all: true,
include: ['src/**/*.{js,jsx,ts,tsx}'],
exclude: [...configDefaults.exclude, 'src/**/*.cy.tsx'],
thresholds: {
lines: 1,
functions: 59,
branches: 62,
statements: 1,
},
},
},
})