Files
orangecat/tests
g-butandClaude Opus 4.5 2df79381f1 feat: streaming AI, canonical rate limiting, cleanup demo pages
Major changes:
- AI streaming: Add unified client for OpenRouter SSE and local (Ollama) providers
- Local AI detection: Auto-detect and configure local model providers
- Rate limiting: Canonical adapters with X-RateLimit-* headers across APIs
- SSE: Add lib/sse.ts for consistent event-stream parsing

Cleanup:
- Remove /demo, /donate, /fund-us, /funding, /fundraising pages
- Simplify ModelSelector component (288 → 80 lines)
- Consolidate timeline queries

New features:
- Voice input component and hook
- Query provider for React Query
- Model registry with status badges
- HTTP headers config

Tests & Docs:
- E2E tests for project creation wizard
- Unit tests for auth, streaming, components
- CHANGELOG.md for version tracking
- Deployment checklist and PR summary docs

Bug fixes:
- Timeline schema and functions migration fixes
- Messaging RLS recursion fix
- Auth callback improvements
- Bitcoin formatting precision
- Lint fixes for unused variables

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:02:26 +01:00
..

Tests Directory

This directory contains all test files organized by type and purpose.

Directory Structure

  • auth/ - Authentication-related tests
  • e2e/ - End-to-end tests using Playwright
  • manual/ - Manual testing scripts and utilities
  • security/ - Security-focused tests
  • setup/ - Test setup and configuration

Test Types

  • Unit Tests: Located in __tests__/ directories next to source files
  • Integration Tests: API and service integration tests
  • E2E Tests: Full user journey tests using Playwright
  • Security Tests: Security vulnerability and policy tests
  • Manual Tests: Scripts for manual testing scenarios

Running Tests

# All tests
npm test

# Unit tests only
npm run test:unit

# Integration tests
npm run test:integration

# E2E tests
npm run test:e2e

# Security tests
npm run test:security

# Auth tests
npm run test:auth

Test Configuration

  • jest.config.js - Jest configuration
  • playwright.config.ts - Playwright E2E configuration
  • setup.ts - Global test setup
  • TestWrapper.tsx - React testing utilities