-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
39 lines (38 loc) · 945 Bytes
/
vitest.config.mjs
File metadata and controls
39 lines (38 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineVitestConfig } from '@nuxt/test-utils/config';
import { configDefaults, coverageConfigDefaults } from 'vitest/config';
export default defineVitestConfig({
test: {
coverage: {
enabled: true,
exclude: [
'.nuxt/**',
'**/config/**',
'**/constants/**',
'**/docs/**',
'**/navigations/**',
'**/test/**',
'app.vue',
'components/Molecules/CarouselSwiper.vue',
'error.vue',
'nuxt.config.ts',
...coverageConfigDefaults.exclude,
],
provider: 'istanbul',
thresholds: {
branches: 85,
functions: 85,
lines: 85,
statements: 85,
},
},
css: {
modules: {
classNameStrategy: 'non-scoped',
},
},
environment: 'nuxt',
exclude: [...configDefaults.exclude, '**/docs/**', '.nuxt/**'],
globals: true,
setupFiles: ['./vitest.setup.ts'],
},
});