forked from vueuse/vueuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
35 lines (34 loc) · 880 Bytes
/
vitest.config.ts
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
import { resolve } from 'path'
import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: {
alias: {
'@vueuse/shared': resolve(__dirname, 'packages/shared/index.ts'),
'@vueuse/core': resolve(__dirname, 'packages/core/index.ts'),
'@vueuse/components': resolve(__dirname, 'packages/components/index.ts'),
'@vueuse/docs-utils': resolve(__dirname, 'packages/.vitepress/plugins/utils.ts'),
},
dedupe: [
'vue',
'vue-demi',
'@vue/runtime-core',
],
},
define: {
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: [resolve(__dirname, 'packages/.test/setup.ts')],
reporters: 'dot',
deps: {
inline: [
'vue2',
'@vue/composition-api',
'vue-demi',
],
},
},
})