mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
40 lines
991 B
TypeScript
40 lines
991 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: {
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'**/cypress/**',
|
|
'**/.{idea,git,cache,output,temp}/**',
|
|
'magic-admin/**',
|
|
],
|
|
include: [
|
|
'./packages/editor/tests/unit/utils/**',
|
|
'./packages/editor/tests/unit/services/**',
|
|
'./packages/stage/tests/**',
|
|
'./packages/utils/tests/**',
|
|
],
|
|
environment: 'jsdom',
|
|
},
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@editor': r('./packages/editor/src'),
|
|
'@form': r('./packages/form/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'),
|
|
},
|
|
},
|
|
});
|