Files
vercel__chat/packages/integration-tests
Fernando Rojo ce0ea536ba readme fixes
2026-01-21 12:52:44 -05:00
..
2026-01-21 12:23:59 -05:00
2026-01-21 12:52:44 -05:00
2026-01-04 13:00:11 -08:00
2026-01-02 15:40:52 -08:00
2025-12-31 16:10:32 -08:00

Integration Tests

Integration tests for the Chat SDK that verify real-world webhook payloads are handled correctly.

Test Categories

  • Unit tests (slack.test.ts, teams.test.ts, gchat.test.ts) - Test adapter functionality with mock payloads
  • Replay tests (replay*.test.ts) - Replay actual production webhook recordings

Replay Tests

Replay tests use recorded webhook payloads from production to verify the SDK handles real interactions correctly.

See fixtures/replay/README.md for:

  • How to record new fixtures
  • Fixture format documentation
  • SHA-based recording workflow
  • Platform-specific webhook formats

Running Tests

# Run all integration tests
pnpm --filter @chat-adapter/integration-tests test

# Run with watch mode
pnpm --filter @chat-adapter/integration-tests test:watch