forked from intlify/vue-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
32 lines (31 loc) · 877 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
import { defineConfig, UserConfig } from 'vitest/config'
import { version } from './package.json'
import { entries } from './scripts/aliases'
export default defineConfig({
define: {
__DEV__: true,
__TEST__: true,
__VERSION__: JSON.stringify(version),
__BROWSER__: false,
__GLOBAL__: false,
__RUNTIME__: false,
__BUNDLE_FILENAME__: JSON.stringify('test.bundle.js'),
__ESM_BUNDLER__: true,
__ESM_BROWSER__: false,
__NODE_JS__: true,
__LITE__: false,
__BRIDGE__: false,
__FEATURE_FULL_INSTALL__: true,
__FEATURE_LEGACY_API__: true,
__FEATURE_JIT_COMPILATION__: true,
__FEATURE_DROP_MESSAGE_COMPILER__: false
},
resolve: {
alias: entries
},
test: {
globals: true,
// disable threads on GH actions to speed it up
pool: process.env.GITHUB_ACTIONS ? undefined : 'threads'
}
}) as UserConfig