krona-front/vitest.config.ts
ochenstarik 721deee615 feat(communications): implement KRONA Design System v3.0 and rebuild Communications module
- Integrate @krona/tokens, @krona/themes, and @krona/ui from krona-library without code duplication
- Support three official V3 themes: noble-green, parchment-light, and graphite-forest-dark
- Rebuild Communications module with 5 interactive views: Messengers, Email, Channels, Contacts, Settings
- Implement mobile-first drill-down, tablet 2-column, and desktop 3-column responsive layouts
- Connect Telegram, WhatsApp, VK, MAX, and Email connector pills with real-time filters
- Implement simulated incoming replies, quick replies manager, CRM deal/task creation, Sing-box VPN status monitor
- Add comprehensive test suite in communicationsDesignSystem.test.tsx (11/11 passing)
- Add IMPLEMENTATION_REPORT.md, UI_LIBRARY_USAGE.md, and COMMUNICATIONS_HANDOFF.md
2026-09-11 16:30:39 +07:00

29 lines
1.2 KiB
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'
import { fileURLToPath } from 'url'
const currentDir = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(currentDir, './src'),
react: path.resolve(currentDir, './node_modules/react'),
'react-dom': path.resolve(currentDir, './node_modules/react-dom'),
'@krona/tokens': path.resolve(currentDir, '../krona-library/packages/tokens/dist/index.mjs'),
'@krona/themes': path.resolve(currentDir, '../krona-library/packages/themes/dist/index.mjs'),
'@krona/ui': path.resolve(currentDir, '../krona-library/packages/ui/src/index.ts'),
'@krona/tokens.css': path.resolve(currentDir, '../krona-library/packages/tokens/src/tokens.css'),
'@krona/themes.css': path.resolve(currentDir, '../krona-library/packages/themes/src/themes.css'),
'@krona/ui.css': path.resolve(currentDir, '../krona-library/packages/ui/dist/style.css'),
},
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts'],
exclude: ['**/node_modules/**', '**/dist/**', '**/e2e/**'],
},
})