forked from unocss/unocss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
36 lines (33 loc) · 1.25 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
import { resolve } from 'path'
import type { AliasOptions } from 'vite'
import { defineConfig } from 'vite'
const r = (p: string) => resolve(__dirname, p)
export const alias: AliasOptions = {
'unocss': r('./packages/unocss/src/'),
'@unocss/core': r('./packages/core/src/'),
'@unocss/vite': r('./packages/vite/src/'),
'@unocss/cli': r('./packages/cli/src/'),
'@unocss/autocomplete': r('./packages/autocomplete/src'),
'@unocss/inspector': r('./packages/inspector/node/'),
'@unocss/preset-mini': r('./packages/preset-mini/src/'),
'@unocss/preset-wind': r('./packages/preset-wind/src/'),
'@unocss/preset-uno': r('./packages/preset-uno/src/'),
'@unocss/preset-web-fonts': r('./packages/preset-web-fonts/src/'),
'@unocss/preset-attributify': r('./packages/preset-attributify/src/'),
'@unocss/preset-icons': r('./packages/preset-icons/src/'),
'@unocss/preset-typography': r('./packages/preset-typography/src/'),
'@unocss/transformer-directives': r('./packages/transformer-directives/src/'),
'@unocss/transformer-variant-group': r('./packages/transformer-variant-group/src/'),
}
export default defineConfig({
optimizeDeps: {
entries: [],
},
resolve: {
alias,
},
test: {
isolate: false,
setupFiles: ['./test/setup.ts'],
},
})