| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains the test suite for the OpenAI Codex OAuth plugin.
Stats: 5904 tests across 359 test files with 80%+ coverage threshold (2.15.0; 19 tests and 1 file skipped by default).
test/ ├── README.md # This file ├── accounts.test.ts # Multi-account storage/rotation tests ├── ansi.test.ts # ANSI escape helpers ├── audit.test.ts # Rotating file audit log tests ├── auth-menu-builder.test.ts # Auth dashboard view-model formatters ├── auth-menu-hotkeys.test.ts # Auth menu hotkey behavior ├── auth-rate-limit.test.ts # Token bucket rate limiting ├── auth.test.ts # OAuth authentication tests (PKCE + JWT) ├── update-notice.test.ts # npm version notice tests ├── browser.test.ts # Platform-specific browser open behavior ├── capability-policy.test.ts # Model capability enforcement ├── chaos/ │ └── fault-injection.test.ts # Chaos/fault injection tests ├── circuit-breaker.test.ts # Failure isolation tests ├── cli-auth-menu.test.ts # CLI auth menu integration ├── cli.test.ts # CLI helper tests ├── codex-bin-wrapper.test.ts # Bin wrapper lazy-load, missing dist handling ├── codex-cli-state.test.ts # CLI state management ├── codex-cli-sync.test.ts # CLI sync coordination ├── codex-host-resolver.test.ts # Host resolver ├── codex-manager-cli.test.ts # CLI settings Q cancel, all 5 panels ├── codex-prompts.test.ts # Codex prompt generation tests ├── codex-routing.test.ts # Codex routing decisions ├── codex.test.ts # Codex prompt/instructions behavior ├── config-files.test.ts # Config file handling ├── config.test.ts # Configuration parsing/merging tests ├── context-overflow.test.ts # Context length handling tests ├── copy-oauth-success.test.ts # Build script tests ├── dashboard-settings.test.ts # Dashboard settings ├── documentation.test.ts # Docs parity, CLI command flags, config precedence, governance ├── entitlement-cache.test.ts # Entitlement cache ├── errors.test.ts # Custom error type tests ├── eslint-config.test.ts # ESLint config validation ├── failure-policy.test.ts # Retry/failover policy ├── fetch-helpers.test.ts # Fetch flow helper tests ├── fixtures/ │ └── v3-storage.json # V3 storage fixture ├── forecast.test.ts # Account forecast ├── hashline-tools.test.ts # Hashline tool helpers ├── health.test.ts # Account health status tests ├── host-codex-prompt.test.ts # Host-specific prompt tests ├── index-retry.test.ts # Plugin retry logic tests ├── index.test.ts # Main plugin integration, email dedup ├── input-utils.test.ts # Input filtering tests ├── install-codex-auth.test.ts # Installer tests ├── live-account-sync.test.ts # Live account sync ├── health-check.test.ts # runHealthCheck quick + live probe paths ├── logger.test.ts # Logging functionality tests ├── login-flow.test.ts # runAuthLogin transports and cap handling ├── login-menu-accounts.test.ts # Account-row assembly for the login menu ├── login-menu-actions.test.ts # Manage actions, identity re-resolution ├── login-menu-data.test.ts # Dashboard row view model, drift sync ├── login-oauth-selection.test.ts # Login-oauth account selection ├── model-map.test.ts # Model name normalization tests ├── oauth-server.integration.test.ts # OAuth server integration (port 1455) ├── package-bin.test.ts # package.json bin field ├── parallel-probe.test.ts # Concurrent health check tests ├── paths.test.ts # Project root detection, worktree identity, UNC paths ├── plugin-config.test.ts # Plugin config defaults + overrides ├── preemptive-quota-scheduler.test.ts # Quota deferral ├── proactive-refresh.test.ts # Token refresh before expiry ├── property/ │ ├── account-identity.property.test.ts # Identity matching/dedup invariants │ ├── helpers.ts # Property test utilities │ ├── model-fallback.property.test.ts # Unsupported-model fallback invariants │ ├── rotation.property.test.ts # Rotation property-based tests │ ├── setup.test.ts # Property test setup │ ├── setup.ts # Property test config │ ├── settings-write-queue.property.test.ts # Write-queue ordering/clamp invariants │ └── transformer.property.test.ts # Transformer property tests ├── quota-cache.test.ts # Quota cache ├── quota-probe.test.ts # Quota probe ├── rate-limit-backoff.test.ts # Exponential backoff tests ├── rate-limit-decision.test.ts # Rate-limit/invalidation decision tree ├── recovery-constants.test.ts # Recovery constants tests ├── recovery-storage.test.ts # Recovery storage tests ├── recovery.test.ts # Session recovery tests ├── refresh-guardian.test.ts # Refresh guardian ├── refresh-lease.test.ts # Refresh lease ├── refresh-queue.test.ts # Queued token refresh tests ├── repo-hygiene.test.ts # Repo cleanup/check, Windows removeWithRetry ├── request-transformer.test.ts # Request transformation tests ├── response-handler-logging.test.ts # SSE handler logging branches ├── response-handler.test.ts # Response handling tests (SSE to JSON) ├── rotation-account-selection.test.ts # chooseAccount tiers, pin discipline ├── rotation-integration.test.ts # Rotation integration, Windows cleanup ├── rotation-proxy-state.test.ts # Proxy state init, stale-state recovery ├── rotation-token-refresh.test.ts # ensureFreshAccessToken refresh/cooldown ├── rotation.test.ts # Account selection tests ├── runtime-paths.test.ts # Runtime path resolution ├── schemas.test.ts # Zod schema validation tests ├── select.test.ts # Select prompt tests ├── server.unit.test.ts # OAuth server unit tests ├── session-affinity.test.ts # Session affinity ├── settings-hub-shared.test.ts # Settings merge/persist transaction ├── settings-write-queue.test.ts # Queued settings write retry policy ├── shutdown.test.ts # Graceful shutdown tests ├── storage-async.test.ts # Async storage operation tests ├── storage-recovery-paths.test.ts # Storage recovery paths ├── storage.test.ts # V3 storage, worktree migration, concurrent load, forged pointers ├── stream-failover.test.ts # Stream failover (fake-timer deterministic) ├── table-formatter.test.ts # CLI table output tests ├── test-model-matrix-script.test.ts # Model matrix script ├── token-utils.test.ts # Token validation tests ├── tool-utils.test.ts # Tool schema helper tests ├── ui-format.test.ts # UI formatting ├── ui-runtime.test.ts # UI runtime ├── ui-theme.test.ts # UI theming ├── unified-settings.test.ts # Settings persistence, EBUSY retry, write queue └── utils.test.ts # Shared utility tests
# Run all tests once
npm test
# Watch mode (re-run on file changes)
npm run test:watch
# Visual test UI
npm run test:ui
# Generate coverage report
npm run test:coverageTests OAuth authentication functionality:
Tests multi-account behavior:
Tests configuration parsing and merging:
Tests request body transformations:
Tests SSE to JSON conversion:
Tests focused helpers used in the 7-step fetch flow:
Tests account selection algorithm:
Property-based tests using fast-check:
Tests V3 storage format:
Tests project root detection and worktree identity:
Tests failure isolation:
Tests account health monitoring:
Tests graceful shutdown:
Tests system resilience:
Tests bin wrapper behavior:
Tests CLI settings management:
Tests deterministic repo hygiene tooling:
Tests settings persistence:
Tests SSE stream recovery:
Tests documentation parity enforcement:
Tests main plugin integration:
Tests model capability enforcement:
Tests retry and failover decisions:
Tests TUI rendering and interaction:
Tests automatically run in GitHub Actions on:
The CI workflow currently tests against Node.js versions (20.x, 22.x).
When adding new functionality:
See the config/ directory for working configuration examples:
| Back | FazBrowse Home | New Git URL |