Closed
Labels
Description
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
- Introduce a type error in any test file.
npm run build && npm teststill pass.
Suggested fix
- Add
tsconfig.test.json(extends the base config, includes the tests,noEmit) and atypecheckscript; run it inci.yml. - Optionally add
typescript-eslintwithno-floating-promisesandno-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
TMHSDigital commentedon Nov 18, 2026
Fixed in bf1d614. Added
tsconfig.test.jsonandnpm 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.