mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
27 lines
540 B
TypeScript
27 lines
540 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',
|
|
coverage: {
|
|
extension: ['.ts', '.vue'],
|
|
},
|
|
},
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@editor': r('./packages/editor/src'),
|
|
'@form': r('./packages/form/src'),
|
|
'@data-source': r('./packages/data-source/src'),
|
|
},
|
|
},
|
|
});
|