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>
80 lines
1.8 KiB
TypeScript
80 lines
1.8 KiB
TypeScript
/**
|
|
* Base Vitest Configuration
|
|
*
|
|
* Shared configuration for all apps and packages in the monorepo.
|
|
* Individual apps can extend this and add app-specific settings.
|
|
*/
|
|
|
|
import { type UserConfig } from 'vitest/config'
|
|
|
|
/**
|
|
* Base test configuration for React apps
|
|
* Use this for apps with React components
|
|
*/
|
|
export const reactTestConfig: UserConfig['test'] = {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
passWithNoTests: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/**',
|
|
'dist/**',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/*.spec.ts',
|
|
'**/*.spec.tsx',
|
|
'**/*.test.ts',
|
|
'**/*.test.tsx',
|
|
'**/test/**',
|
|
'**/tests/**',
|
|
'**/__tests__/**',
|
|
'**/__mocks__/**',
|
|
'**/e2e/**',
|
|
'src/mocks/**',
|
|
],
|
|
},
|
|
}
|
|
|
|
/**
|
|
* Base test configuration for Node.js packages (no React)
|
|
* Use this for pure TypeScript packages without UI
|
|
*/
|
|
export const nodeTestConfig: UserConfig['test'] = {
|
|
globals: true,
|
|
environment: 'node',
|
|
passWithNoTests: true,
|
|
include: ['src/**/*.test.ts', 'src/**/*.spec.ts'],
|
|
testTimeout: 10000,
|
|
pool: 'threads',
|
|
isolate: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/**',
|
|
'dist/**',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/*.spec.ts',
|
|
'**/*.test.ts',
|
|
],
|
|
},
|
|
}
|
|
|
|
/**
|
|
* Common setup files for React apps
|
|
* Apps can reference this array in their vitest.config.ts
|
|
*/
|
|
export const commonReactSetupFiles = [
|
|
// Add common setup files here as they're created
|
|
// Example: '@lilith/test-utils/setup/react.ts'
|
|
]
|
|
|
|
/**
|
|
* Common setup files for Node packages
|
|
*/
|
|
export const commonNodeSetupFiles = [
|
|
// Add common setup files here
|
|
]
|