Skip to content

[P4] Build/test hygiene: clean before build, add http.ts unit test #100

Description

@Bccorb

Severity: P4 — Improvement/Test-gap

Where: package.json (build/prepublishOnly), src/core/http.ts

Problem
build is bare tsc (no clean), so stale dist artifacts can be packed by a local prepublishOnly. src/core/http.ts is the only source file with no direct test despite real branch logic (joinUrl, safeJson, isRateLimited, jsonBody).

Suggested fix
Prepend a clean step to build/prepublishOnly; add an http.test.ts.

Filed from an internal code audit (2026-07). File references are against main at audit time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions