forked from stevekinney/enterprise-ui-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
38 lines (37 loc) · 920 Bytes
/
vitest.config.ts
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
import path from 'node:path';
import { defineConfig, defaultExclude } from 'vitest/config';
import configuration from './vite.config';
export default defineConfig({
...configuration,
resolve: {
alias: {
...configuration?.resolve?.alias,
test: path.resolve(__dirname, './test'),
},
},
test: {
globals: true,
setupFiles: path.resolve(__dirname, 'test/setup.ts'),
exclude: [...defaultExclude, '**/*.svelte**'],
environmentMatchGlobs: [
['**/*.test.tsx', 'jsdom'],
['**/*.component.test.ts', 'jsdom'],
],
coverage: {
statements: 54.92,
thresholdAutoUpdate: true,
include: ['src/**/*'],
exclude: [
'test/**',
'vite.*.ts',
'**/*.d.ts',
'**/*.test.*',
'**/*.config.*',
'**/snapshot-tests/**',
'**/*.solution.tsx',
'**/coverage/**',
],
all: true,
},
},
});