Skip to content

Add comprehensive test suite #5

@JiwaniZakir

Description

@JiwaniZakir

Problem

The project has only a single smoke test. The core chatbot logic (message handling, prompt construction, streaming) has no test coverage.

Proposed Solution

  • Add unit tests for the Chatbot component's message flow
  • Test the prompt construction logic (knowledge base + user message)
  • Test error handling (API failures, network errors)
  • Test the loading state and streaming behavior
  • Use MSW (Mock Service Worker) or manual fetch mocks for API calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions