Skip to content

Conversation

@anantham
Copy link
Owner

@anantham anantham commented Dec 26, 2025

Summary

Adds replay-only (no network) provider contract tests using small VCR cassettes that exercise real adapter logic for OpenAI and Gemini.

Changes

  • tests/contracts/provider.contract.test.ts: Calls adapter.translate() with cassette-driven SDK mocks
  • tests/contracts/vcr/loadCassette.ts: Deterministic cassette loader
  • tests/contracts/cassettes/*.json: Minimal fixtures for OpenAI + Gemini

Testing

  • npm test

@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
lexicon-forge Ready Ready Preview, Comment Dec 26, 2025 8:32pm

@anantham anantham merged commit 4566abe into main Dec 29, 2025
3 of 4 checks passed
@anantham anantham deleted the test/provider-contracts-vcr branch January 1, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants