utopia-ui/vite.config.ts
Ulf Gebhardt 0678506ed6
fix(workflow): unit tests workflow not running properly (#178)
* workflow: unit tests do not run properly

The pedicate-quantifier every seem not to mach properly

Problematic worklfow:
https://github.com/utopia-os/utopia-ui/actions/runs/13639312728/job/38125326624

The PR(https://github.com/utopia-os/utopia-ui/pull/172) did not execute,
but tsx files were changed.

* reduce coverage requirements

This was inherited frommaster
2025-03-05 00:54:15 +01:00

26 lines
627 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,
functions: 56,
branches: 58,
statements: 1,
},
},
},
})