forked from Lucterios2/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
26 lines (25 loc) · 767 Bytes
/
vitest.config.js
File metadata and controls
26 lines (25 loc) · 767 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
import { fileURLToPath } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(
viteConfig,
defineConfig({
test: {
server: {
deps: {
inline: ['vuetify']
}
},
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
reporter: ["junit", "default"],
outputFile: "./test-results.xml",
coverage: {
reporter: ['text', 'html', 'cobertura'],
reportsDirectory: './coverage',
exclude: ['**/*.cjs', '**/plugins', '**/main.js', '*.config.js', '**/dist/**', '**/web/**'],
},
}
})
)