-
Notifications
You must be signed in to change notification settings - Fork 4
/
vitest.config.mjs
42 lines (39 loc) · 1.02 KB
/
vitest.config.mjs
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
//
// vitest does not support the `test` option in the vite config file.
// given the base/main construct (presumably) of the vite config file,
// so we need this separate file to configure vitest.
//
import { defineConfig } from 'vite'
import { coverageConfigDefaults } from 'vitest/dist/config'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue({
template: {
compilerOptions: {
isCustomElement: tag => tag.startsWith('BIcon')
}
}
})],
test: {
globals: true,
environment: 'jsdom',
coverage: {
exclude: [
...coverageConfigDefaults.exclude,
'*.config.ts',
'build/*',
'src/*.ts',
'src/main/online.ts',
'src/main/dropbox.ts',
'src/main/gdrive.ts',
'src/automations/macos*.ts',
'src/automations/robot.ts',
'src/automations/windows.ts',
'src/services/*worker.ts',
'src/llms/*worker.ts',
'src/vendor/**/*',
]
},
},
})