forked from Tencent/tmagic-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
42 lines (37 loc) · 1.11 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
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
import Vue from '@vitejs/plugin-vue';
const r = (p: string) => resolve(__dirname, p);
export default defineConfig({
plugins: [Vue()],
test: {
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'magic-admin/**',
],
include: [
'./packages/editor/tests/**',
'./packages/form/tests/unit/utils/**',
'./packages/stage/tests/**',
'./packages/utils/tests/**',
'./packages/data-source/tests/**',
],
environment: 'jsdom',
},
resolve: {
alias: {
'@editor': r('./packages/editor/src'),
'@form': r('./packages/form/src'),
'@data-source': r('./packages/data-source/src'),
'@tmagic/core': r('./packages/core/src'),
'@tmagic/utils': r('./packages/utils/src'),
'@tmagic/editor': r('./packages/editor/src'),
'@tmagic/stage': r('./packages/stage/src'),
'@tmagic/schema': r('./packages/schema/src'),
'@tmagic/data-source': r('./packages/data-source/src'),
},
},
});