Skip to content

Type-check test files and add a lint step in CI #123

Closed

Description

@TMHSDigital

Summary

No linter is configured, and the test files are never type-checked: tsconfig.json excludes src/**/__tests__ and vitest strips types without checking them.

Where

  • mcp-server/package.json:18 (scripts: build, dev, start, test only)
  • mcp-server/tsconfig.json:19 ("exclude": [..., "src/**/__tests__"])

Impact

Type errors in about 2,000 lines of tests, unused imports and floating promises pass CI unnoticed.

Steps to reproduce

  1. Introduce a type error in any test file.
  2. npm run build && npm test still pass.

Suggested fix

  • Add tsconfig.test.json (extends the base config, includes the tests, noEmit) and a typecheck script; run it in ci.yml.
  • Optionally add typescript-eslint with no-floating-promises and no-unused-vars.

Acceptance criteria

  • CI fails on a type error in a test file.

Getting started

  • Relevant files: mcp-server/tsconfig.json, mcp-server/package.json, .github/workflows/ci.yml

Filed by repo-audit/full-audit at a59395f. Severity: low. Effort: S. audit-key: quality|mcp-server/package.json|lint

Activity

  1. added
    good first issue
    tech-debt
    severity: low
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 18, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in bf1d614. Added tsconfig.test.json and npm run typecheck (sources and test files, noEmit), run in ci.yml and in the release test job; fixed the one existing type error. Verified: a probe test with a type error makes the script exit 2, and CI run 44351421868 passed with the new step on ubuntu and Windows. A linter was optional and is not added.

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

    good first issueseverity: lowtech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions