Skip to content

Add regression tests for query serialization options #28

Description

@TDanks2000

Background

Several TMDB endpoints accept arrays, repeated values, or comma-separated query options. The beginner contribution ideas call out adding regression coverage for these request shapes, but there is no open issue for it.

Proposed change

Add focused request-capture tests for representative endpoint methods that serialize non-trivial query options.

Acceptance criteria

  • covers at least two existing endpoint methods with array, repeated, or comma-separated query values
  • asserts the final request URL/query values rather than making live TMDB requests
  • uses the repository's existing mocked/captured request test style
  • does not change public API behavior unless a real serialization bug is found
  • bun run test and bun run typecheck pass

Files likely involved

  • tests/endpoint-coverage.test.ts
  • the relevant endpoint source files for reference only

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions