Files
orangecat/tests
g-butandClaude Sonnet 4.6 aeb78caa37 fix(tests): restore 53 broken tests caused by over-eager dead-export removal
- Re-export formatDateTime (dates.ts), getCurrencyHint (currency-helpers.ts),
  formatBTC/parseBTCAmount/validateBTCAmount (currency barrel), and
  researchEntitySchema (research-config.ts) — test files are valid importers
- Update offline-queue-events test to only test queueUpdated(); remove
  sync lifecycle tests whose source functions were deleted last session
- Update Button + AuthButtons tests: replace old arbitrary min-h-[Npx] /
  min-w-[80px] class assertions with current Tailwind scale equivalents
  (min-h-11, min-h-12, min-h-14, min-w-20, min-h-9)
- Add migration removing SATS from currency CHECK constraints + converting
  21 legacy satoshi-scale rows to BTC across projects/causes/products/services

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 16:14:19 +02: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