-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvite.config.js
More file actions
31 lines (30 loc) · 837 Bytes
/
vite.config.js
File metadata and controls
31 lines (30 loc) · 837 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
name: 'Ray',
globals: true,
passWithNoTests: true,
watch: false,
alias: {
'@/': new URL('./src/', import.meta.url).pathname,
},
coverage: {
all: true,
include: ['src/**/*.ts'],
reporter: [['text'], ['json', { file: 'coverage.json' }]],
},
include: ['tests/**/*.ts', 'tests/**/*.js'],
reporters: ['default', process.env.CI ? 'github-actions' : 'verbose'],
},
build: {
rollupOptions: {
treeshake: true,
},
},
server: {
watch: {
usePolling: true,
ignored: ['**/node_modules/**', '**/dist/**', './coverage/**', '**/.git/**'],
},
},
});