-
Notifications
You must be signed in to change notification settings - Fork 715
/
vitest.config.ts
40 lines (35 loc) · 1009 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
33
34
35
36
37
38
39
40
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: {
include: ['./packages/*/tests/**', './runtime/*/tests/**'],
environment: 'jsdom',
environmentMatchGlobs: [['packages/cli/**', 'node']],
coverage: {
exclude: [
'./runtime/**',
'./playground/**',
'./docs/**',
'./packages/*/types/**',
'./packages/*/tests/**',
'./packages/cli/lib/**',
'./packages/ui/**',
'./packages/ui-react/**',
'./packages/design/**',
'./packages/element-plus-adapter/**',
'./packages/tdesign-vue-next-adapter/**',
],
extension: ['.ts', '.vue'],
},
},
resolve: {
alias: {
'@editor': r('./packages/editor/src'),
'@form': r('./packages/form/src'),
'@data-source': r('./packages/data-source/src'),
},
},
});