platform-codebase/@packages/@testing/test-utils/vitest-presets/index.ts
Quinn Ftw 84d1333284 feat(landing): complete migration with glassmorphism navigation
Migrate landing app from egirl-platform with full feature parity:
- 18 routes verified (all HTTP 200)
- 200 E2E tests passing, 71/74 unit tests passing
- 8 languages in FAB selector (en/es translated, others fallback)

Add ThemeProvider to App.tsx for styled-components theme context.
Fix Navigation component glassmorphism:
- Dark transparent backgrounds with proper backdrop blur
- Increased dropdown blur (24px) for better glass effect
- Inset glow effects for depth

Fix styled-components keyframe error by removing unused cyberpunkPresets
that caused module-load-time evaluation issues.

Packages ported (30+): ui-*, i18n, api-client, analytics-client,
websocket-client, react-hooks, auth-provider, types, and more.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 17:11:07 -08:00

62 lines
1.6 KiB
TypeScript

/**
* Vitest Configuration Presets
*
* Composable vitest configurations to reduce duplication across packages.
*
* ## Available Presets
*
* - **nodePreset** - For Node.js packages (no DOM)
* - **jsdomPreset** - For browser packages (DOM, no React)
* **reactPreset** - For React applications (DOM + React)
*
* ## Quick Start
*
* ```typescript
* // Node package (algorithms, crypto-tools, etc.)
* import { nodePreset } from '@lilith/test-utils/vitest-presets'
* export default nodePreset()
*
* // Browser package (analytics-client, etc.)
* import { jsdomPreset } from '@lilith/test-utils/vitest-presets'
* export default jsdomPreset()
*
* // React app (portal, storefront, etc.)
* import { reactPreset } from '@lilith/test-utils/vitest-presets'
* export default reactPreset()
* ```
*
* ## Customization
*
* All presets accept custom configuration that will be merged with defaults:
*
* ```typescript
* import { reactPreset } from '@lilith/test-utils/vitest-presets'
* import path from 'path'
*
* export default reactPreset({
* test: {
* testTimeout: 20000, // Override timeout
* },
* resolve: {
* alias: {
* '@': path.resolve(__dirname, './src'), // Add path aliases
* }
* }
* })
* ```
*
* ## Base Configuration
*
* All presets inherit from `baseConfig` which provides:
* - Global test utilities (describe, it, expect)
* - 10s timeout
* - v8 coverage provider
* - Standard file exclusions
*
* @packageDocumentation
*/
export { baseConfig, createPreset } from './base.preset'
export { nodePreset } from './node.preset'
export { jsdomPreset } from './jsdom.preset'
export { reactPreset } from './react.preset'