-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
vitest.config.ts
32 lines (30 loc) · 1022 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
/// <reference types="vitest" />
/// <reference types="vitest/globals" />
import { resolve } from 'node:path'
import { defineConfig } from 'vite'
export default defineConfig({
define: {
__DEV__: true,
__TEST__: true,
__BROWSER__: true,
},
resolve: {
alias: {
'unhead': resolve(__dirname, 'packages/unhead/src'),
'@unhead/shared': resolve(__dirname, 'packages/shared/src'),
'@unhead/schema': resolve(__dirname, 'packages/schema/src'),
'@unhead/ssr': resolve(__dirname, 'packages/ssr/src'),
'@unhead/addons': resolve(__dirname, 'packages/addons/src'),
'@unhead/dom': resolve(__dirname, 'packages/dom/src'),
'@unhead/vue/polyfill': resolve(__dirname, 'packages/vue/src/VueUseHeadPolyfill.ts'),
'@unhead/vue': resolve(__dirname, 'packages/vue/src'),
'@unhead/schema-org': resolve(__dirname, 'packages/schema-org/src'),
},
},
test: {
// include: ['test/**/*.test.ts'],
globals: true,
reporters: 'dot',
isolate: true,
},
})