-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
49 lines (48 loc) · 954 Bytes
/
vite.config.js
File metadata and controls
49 lines (48 loc) · 954 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
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';
export default defineConfig({
base: './',
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
sourcemap: true,
},
server: {
port: 3000,
open: true,
},
test: {
globals: true,
silent : true,
environment: 'happy-dom',
setupFiles: ['./tests/setup.js'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{js,vue}'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'node_modules/**',
'tests/',
'**/*.test.js',
'**/*.spec.js',
'src/main.js',
'*.js',
],
thresholds: {
lines: 60,
functions: 60,
branches: 60,
statements: 60,
},
},
},
});