forked from lyqht/mini-qr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (30 loc) · 883 Bytes
/
vitest.config.ts
File metadata and controls
31 lines (30 loc) · 883 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
// vitest.config.ts
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()], // Include Vue plugin if testing Vue components
test: {
globals: true, // Use global APIs like describe, it, expect
// Exclude E2E tests
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'./tests/e2e/**'
],
// Add any other Vitest config options here
coverage: {
provider: 'v8', // or 'istanbul'
reporter: ['text', 'json', 'html']
}
},
resolve: {
alias: {
// Setup aliases to match your Vite/Vue config if necessary
'@': path.resolve(__dirname, './src')
}
}
})