platform-codebase/@packages/@testing/test-utils/vitest.config.example-react.ts
Quinn Ftw 74373e08a2 refactor: migrate UI packages from @lilith/ui-* to external @ui/*
Consolidates UI component library to use external @ui packages from
~/Code/@packages/@ui instead of local duplicates. This eliminates
namespace conflicts and centralizes UI development.

Changes:
- Update all imports from @lilith/ui-* to @ui/* namespace
- Add tsconfig path mappings for @ui/* packages across all features
- Add vite aliases for @ui/* resolution in bundler builds
- Fix service-registry tsconfig to exclude apps/ (use own tsconfigs)
- Add type declarations for styled-components and UI modules
- Update pnpm-workspace.yaml to include external @ui packages
- Fix TypeScript errors in test-utils, i18n, and dashboard components
- Add @ts-nocheck to storybook files (storybook not installed)
- Extend SEOPageType to support additional page types (terms, privacy, merch)
- Remove stale inventory files (moved to host-inventory package)

All packages now compile cleanly when run from their respective directories.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 01:12:58 -08:00

34 lines
919 B
TypeScript

/**
* Example Vitest Configuration for React Apps
*
* Copy this file to your app directory as `vitest.config.ts`
* and customize as needed.
*
* NOTE: This example file won't type-check in-place because it references
* the package itself (@lilith/test-utils). It's meant to be copied to
* consuming apps where the import will resolve correctly.
*/
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'
import { reactTestConfig } from '@lilith/test-utils/vitest.config.base'
export default defineConfig({
plugins: [react()],
test: {
...reactTestConfig,
// Optional: Add app-specific setup file
setupFiles: ['./vitest.setup.ts'],
// Optional: Exclude e2e tests
exclude: [
...(reactTestConfig.exclude || []),
'**/e2e/**',
],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})