Skip to content

test: add unit tests for TypeScript ChainAgent and BedrockFlowsAgent #539

Description

@nuthalapativarun

Problem

ChainAgent and BedrockFlowsAgent have no unit test coverage in the TypeScript package. The only agent tests that exist are LambdaAgent.test.ts, OpenAi.test.ts, and the general Agents.test.ts.

Proposed Solution

Add typescript/tests/agents/ChainAgent.test.ts and typescript/tests/agents/BedrockFlowsAgent.test.ts following the same patterns used in LambdaAgent.test.ts:

  • Mock the AWS SDK / external clients
  • Test processRequest happy path
  • Test error / edge cases

This mirrors the work done in Python (#457-style) for the TypeScript side.

Activity

  1. cornelcroi commented on Jun 30, 2026

    @cornelcroi
    Collaborator

    PR #540 implements exactly this. Closing the issue — it will be resolved when #540 is merged.

  2. added a commit that references this issue on Sep 13, 2026
    b679fa6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions