Skip to content

Fix TypeScript errors in tests/services/api/axios.config.test.ts (type-check cleanup, part of #1074) #1200

Description

@RUKAYAT-CODER

Overview

Running tsc --noEmit reports 3 TypeScript errors in tests/services/api/axios.config.test.ts. These are part of the project-wide type-check debt tracked in #1074; fixing them file-by-file is the agreed approach. This issue covers just this one file so it stays a small, self-contained change.

Specifications

Features:

  • tests/services/api/axios.config.test.ts compiles with no TypeScript errors under tsc --noEmit.

Tasks:

  • Run npx tsc --noEmit and address every error reported for tests/services/api/axios.config.test.ts (correct types, add missing properties/exports, fix generic/prop mismatches, remove unsafe casts).
  • Keep the change behaviour-preserving; do not silence errors with @ts-ignore/as any.

Impacted Files:

  • tests/services/api/axios.config.test.ts

Acceptance Criteria

  • npx tsc --noEmit reports zero errors for tests/services/api/axios.config.test.ts.
  • No new @ts-ignore/as any is introduced.
  • All the CI passes
  • Star the repo

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

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions