mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 02:28:04 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1009 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1009 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/**', './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'),
 | 
						|
    },
 | 
						|
  },
 | 
						|
});
 |