utopia-ui/vite.config.ts
Ulf Gebhardt 12fd624780
refactor(source): define more types (#149)
* define more types

* lint fixes

* update snapshot and reduce coverage

* revert role change, since it incompatible with directus
2025-02-22 16:09:38 +00:00

24 lines
522 B
TypeScript

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