mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-12 15:15:49 +00:00
36 lines
921 B
TypeScript
36 lines
921 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/mock.vikePageContext.ts',
|
|
'scripts/tests/plugin.pinia.ts',
|
|
'scripts/tests/plugin.i18n-vuetify.ts',
|
|
],
|
|
coverage: {
|
|
all: true,
|
|
include: ['src/**/*.{js,jsx,ts,tsx,vue}'],
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
// storybook
|
|
'**/*{.,-}stories.?(c|m)[jt]s?(x)',
|
|
'src/stories/**/*',
|
|
],
|
|
thresholds: {
|
|
lines: 84,
|
|
// functions: 20, // has problems see https://github.com/vitest-dev/vitest/issues/3607
|
|
branches: 92,
|
|
statements: 84,
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
)
|