mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
add coverage thrasholds
This commit is contained in:
parent
0acadc8596
commit
a13339ac47
@ -1,5 +1,6 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
import { configDefaults } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
@ -7,5 +8,18 @@ export default defineConfig({
|
||||
globals: true,
|
||||
environment: 'happy-dom',
|
||||
setupFiles: ['setupTest.ts'],
|
||||
coverage: {
|
||||
all: true,
|
||||
include: ['src/**/*.{js,jsx,ts,tsx}'],
|
||||
exclude: [
|
||||
...configDefaults.exclude,
|
||||
],
|
||||
thresholds: {
|
||||
lines: 0,
|
||||
functions: 67,
|
||||
branches: 67,
|
||||
statements: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user