mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 15:25:59 +00:00
23 lines
559 B
TypeScript
23 lines
559 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'],
|
|
reporter: ['html', 'json-summary'],
|
|
thresholds: {
|
|
lines: 1,
|
|
},
|
|
},
|
|
},
|
|
})
|