-
Notifications
You must be signed in to change notification settings - Fork 346
/
Copy pathvite.config.ts
42 lines (40 loc) · 868 Bytes
/
vite.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
39
40
41
42
/// <reference types="vitest" />
import { URL, fileURLToPath } from 'node:url'
import vue from '@vitejs/plugin-vue'
import analyzer from 'rollup-plugin-analyzer'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
src: fileURLToPath(new URL('src', import.meta.url)),
},
},
plugins: [
vue(),
analyzer({ summaryOnly: true }),
],
test: {
environment: 'happy-dom',
setupFiles: './src/setupTests.ts',
globals: true,
snapshotFormat: {
escapeString: false,
},
coverage: {
enabled: true,
provider: 'v8',
include: [
'src',
],
exclude: [
'src/*.{ts,vue}',
'src/services/api.ts',
'src/setupTests.ts',
'src/utils/test',
'**/*.d.ts',
],
all: true,
},
},
})