-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
36 lines (35 loc) · 898 Bytes
/
Copy pathvitest.config.mts
File metadata and controls
36 lines (35 loc) · 898 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
import { resolve } from 'node:path'
import { configDefaults, defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
test: {
projects: [
{
extends: true,
test: {
name: 'node',
exclude: [
...configDefaults.exclude,
'**/CoverThumbnailImage.spec.ts',
'**/CuratedLibrarySyncSettings.spec.ts'
]
}
},
{
extends: true,
test: {
name: 'vue-client',
include: ['**/CoverThumbnailImage.spec.ts', '**/CuratedLibrarySyncSettings.spec.ts'],
environment: './tests/vueClientEnvironment.ts'
}
}
]
},
resolve: {
alias: {
'@renderer': resolve(import.meta.dirname, 'src/renderer/src'),
'@shared': resolve(import.meta.dirname, 'src/shared')
}
}
})