Skip to content

Add component tests for ReasonerDialog #218

Description

@aadorian

Description

components/ontology/reasoner-dialog.tsx has no component tests. This is a good first task for testing async UI with mocked dependencies.

Difficulty

Easy–Medium

Skills

React Testing Library, Jest

Relevant files

  • components/ontology/reasoner-dialog.tsx
  • components/ontology/__tests__/reasoner-dialog.test.tsx (create)
  • lib/ontology/reasoner.ts — mock this module

Tasks

  • Create component test file
  • Test dialog opens and closes
  • Test "Run reasoner" shows loading state then results (mock reasoner)
  • Test error state when reasoner throws

Acceptance Criteria

  • All new tests pass with npm test
  • Reasoner module is mocked — no WASM or long-running calls in CI
  • Follow existing test patterns

Getting started

  1. Comment on this issue to get assigned
  2. Fork the repo and create a branch: test/reasoner-dialog
  3. Run npm ci && npm test before opening a PR

Activity

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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions