mirror of
https://github.com/ValueCell-ai/ClawX.git
synced 2026-08-14 08:53:09 +00:00
25 lines
613 B
TypeScript
25 lines
613 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./tests/setup.ts'],
|
|
include: ['tests/unit/**/*.{test,spec}.{ts,tsx}'],
|
|
coverage: {
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: ['node_modules/', 'tests/'],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
'@electron': resolve(__dirname, 'electron'),
|
|
'@shared': resolve(__dirname, 'shared'),
|
|
},
|
|
},
|
|
});
|