1 Star 8 Fork 7

whilewon/tmagic-editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vitest.config.ts 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
roymondchen 提交于 2023-05-29 11:33 . feat: 新增数据源
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'),
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/whilewon/tmagic-editor.git
[email protected]:whilewon/tmagic-editor.git
whilewon
tmagic-editor
tmagic-editor
master

搜索帮助