Some checks failed
Lint / Lint and Check (push) Failing after 48s
Integrates Playwright for end-to-end browser testing with automated web server setup, example smoke tests, and CI-compatible configuration. Introduces Vitest, Testing Library, and related utilities for fast component and unit testing. Updates scripts, development dependencies, and lockfile to support both test suites. Establishes unified testing commands for local and CI workflows, laying groundwork for comprehensive automated UI and integration coverage.
21 lines
740 B
Plaintext
21 lines
740 B
Plaintext
# Project Rules
|
|
|
|
## Testing Policy
|
|
- **Mandatory Tests**: All new features and bug fixes must be accompanied by tests.
|
|
- **Unit/Integration Tests**: Use **Vitest** for testing utilities, hooks, and components.
|
|
- **E2E Tests**: Use **Playwright** for critical user flows (auth, core features).
|
|
- **Coverage**: Aim for high coverage on business logic and critical paths.
|
|
|
|
## Tech Stack
|
|
- **Framework**: Next.js 15 (App Router)
|
|
- **Language**: TypeScript
|
|
- **Styling**: Tailwind CSS
|
|
- **Database**: PostgreSQL with Drizzle ORM
|
|
- **State Management**: React Query
|
|
|
|
## Code Style
|
|
- **Functional Components**: Use arrow functions for components.
|
|
- **Types**: strict TypeScript usage (avoid `any`).
|
|
- **Imports**: Use absolute imports (`@/...`).
|
|
|