Skip to main content
The gateway currently has the formal Vitest suite, including auth, analytics, JWT, middleware, error handling, validation, and an integration test. Other packages primarily expose build/lint/type-check workflows and need targeted manual or new automated coverage.

Commands

Use the exact script names from the current package manifest if they differ.

Test layers

Validation, pure policy, adapters with mocked providers, formatting, protocol guards, chunking, and error mapping.

High-risk regression cases

  • A record ID from organization A cannot be read or changed from organization B.
  • A delayed AI job does not reply after human assignment or closure.
  • Duplicate webhook/job delivery does not create duplicate tickets/messages.
  • Widget messages from the wrong origin/window/version are ignored.
  • Changing embedding dimensions fails safely and does not corrupt existing vectors.
  • Owner-only and enterprise-only operations cannot be reached through the console or API by lower roles.
A passing build is not a behavioral test. Add a regression test that fails before the fix whenever the package has a suitable test harness.
Last modified on July 17, 2026