Skip to content

Conversation

@dionlow
Copy link

@dionlow dionlow commented Dec 3, 2025

Summary

  • Add comprehensive schema validation test suite with 48 tests
  • Export all Zod schemas from aisdk adapter for testing
  • Add test:schema script to test package.json

Test Coverage

Tests all 8 Ampersand AI SDK tools:

  • ✅ Write operations (createRecord, updateRecord)
  • ✅ Connection management (checkConnection)
  • ✅ Installation management (checkInstallation, createInstallation)
  • ✅ OAuth (startOAuth)
  • ✅ API requests (sendRequest, sendReadRequest)

Test Results

Total tests: 48
Passed: 48
Failed: 0
Success rate: 100.0%

Benefits

  • Fast execution (no AI or API calls)
  • No OpenAI credits required
  • Tests both valid and invalid inputs

How to Run

pnpm --filter ai-e2e-test test:schema

Stack

This PR stacks on top of dl-local-simple-test

- Create ai-e2e-schema-validation.ts with 48 schema tests
- Export all Zod schemas from aisdk adapter for testing
- Add test:schema script to test package.json
- Tests cover all 8 tools: write operations, connection/installation management, OAuth, and API requests
- 100% test pass rate with no AI or API calls required

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dionlow dionlow changed the title test: add comprehensive schema validation test suite test: add basic schema validation test suite Dec 3, 2025
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