forked from vueuse/vueuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
43 lines (42 loc) · 1.02 KB
/
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
40
41
42
43
import { resolve } from 'node: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/math': resolve(__dirname, 'packages/math/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: {
environment: 'jsdom',
setupFiles: [resolve(__dirname, 'packages/.test/setup.ts')],
reporters: 'dot',
server: {
deps: {
inline: [
'vue2',
'@vue/composition-api',
'vue-demi',
'msw',
],
},
},
},
ssr: {
noExternal: [
/@vueuse\/.*/,
],
},
})