TypeChat icon indicating copy to clipboard operation
TypeChat copied to clipboard

Update tests to call actual API if available, mock otherwise

Open robgruen opened this issue 6 months ago • 1 comments

robgruen avatar May 05 '26 17:05 robgruen

Implemented in PR #430.

  • Changed: model integration tests now call the configured API when OPENAI_API_KEY and OPENAI_MODEL are available, while retaining deterministic mocks otherwise.
  • Tests: npm run build, npx tsc -p test, and the TypeScript Node test suite passed with 113 tests passing and one credential-gated test skipped.
  • PR: https://github.com/microsoft/TypeChat/pull/430

mikemikimike avatar Aug 27 '26 15:08 mikemikimike