tmagic-editor/vitest.config.ts
roymondchen de47514f69 feat: 完善迭代器嵌套使用问题,重构事件配置处理代码
* feat(editor,core,data-source,dep,schema,ui,utils,vue-runtime-help): 完善迭代器

* test: 完善测试用例

* chore: 构建

* feat: 迭代器嵌套事件传递数据

---------

Co-authored-by: roymondchen <roymondchen@tencent.com>
2024-12-09 20:21:34 +08:00

42 lines
1018 B
TypeScript

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/**'],
environment: 'jsdom',
environmentMatchGlobs: [['packages/cli/**', 'node']],
coverage: {
exclude: [
'./runtime/**',
'./playground/**',
'./docs/**',
'./packages/*/types/**',
'./packages/*/tests/**',
'./packages/cli/lib/**',
'./packages/ui/**',
'./packages/ui-vue2/**',
'./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'),
},
},
});