forked from vueuse/vueuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
39 lines (37 loc) · 972 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
36
37
38
39
/* eslint-disable spaced-comment */
/// <reference types="vitest" />
/// <reference types="vitest/global" />
import { resolve } from 'path'
import { defineConfig } from 'vite'
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/utils.ts'),
},
dedupe: [
'vue',
'vue-demi',
'@vue/runtime-core',
],
},
define: {
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
},
test: {
global: true,
environment: 'jsdom',
setupFiles: [resolve(__dirname, 'packages/.test/setup.ts')],
reporters: 'dot',
deps: {
inline: [
'vue2',
'@vue/composition-api',
'vue-demi',
],
},
},
})