utopia-ui/vite.config.ts
Ulf Gebhardt eb4b8788bb
feat(docu): generate coverage badge (#162)
* generate coverage badge

generate coverage badge in docs generation workflow in order to upload
it with the documentation

* include badge in readme, correct image name & json path

* job names, json path

* remove coverage branch from workflow
2025-02-28 19:56:03 +00: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: 59,
branches: 62,
statements: 1,
},
},
},
})