mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:07:21 +01:00
Two causes identified:
- currency.comprehensive: 30,000 format ops with 60s threshold held a
worker open for ~16s; reduced to 3,000 ops (1,000 iterations) / 6s limit
- Input.test.tsx: all 14 userEvent.setup() calls lacked { delay: null },
causing artificial per-keystroke delays that left async work pending after
each test; 100-char type tests went from ~1.5s to <50ms
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests Directory
This directory contains all test files organized by type and purpose.
Directory Structure
auth/- Authentication-related testse2e/- End-to-end tests using Playwrightmanual/- Manual testing scripts and utilitiessecurity/- Security-focused testssetup/- 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 configurationplaywright.config.ts- Playwright E2E configurationsetup.ts- Global test setupTestWrapper.tsx- React testing utilities