mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
30 lines
710 B
TypeScript
30 lines
710 B
TypeScript
import { defineConfig, mergeConfig, configDefaults } from 'vitest/config'
|
|
|
|
import viteConfig from './vite.config'
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: ['scripts/tests/mock.$t.ts', 'scripts/tests/plugin.vuetify.ts'],
|
|
coverage: {
|
|
all: true,
|
|
include: ['src/**/*.{js,jsx,ts,tsx,vue}'],
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
// storybook
|
|
'**/*{.,-}stories.?(c|m)[jt]s?(x)',
|
|
'src/stories/**/*',
|
|
],
|
|
lines: 14,
|
|
functions: 20,
|
|
branches: 40,
|
|
statements: 14,
|
|
// 100: true,
|
|
},
|
|
},
|
|
}),
|
|
)
|