Skip to content

finding: phase2-schemas.test.ts imports 9 schemas no test uses — unused-import warnings overstate the file's pin coverage #5824

Description

@claude

Measured while executing #5647 (lint pass over the edited files). Filed unassigned, observational — pre-existing, warning-level, no gate is red.

Measurement

packages/types/src/__tests__/phase2-schemas.test.ts imports 10 schema names from ../zod/index.zod that no test in the file uses. On the pre-PR-#5823 baseline (ad404e057), package-level eslint reports 10 @typescript-eslint/no-unused-vars warnings on the import block:

  • AppActionSchema, AppMenuItemSchema, ThemePreviewSchema, ReportViewerSchema, BlockEditorSchema, BlockInstanceSchema, ActionExecutionModeSchema, ActionCallbackSchema, ActionConditionSchema, CRUDSchema

PR #5823 removes ThemePreviewSchema (name retired), leaving 9. The rule is warning-level in this repo, so nothing is red — but each unused import mildly overstates what the file covers: a reader (or a coverage-by-import census) sees ReportViewerSchema imported by the acceptance suite and can conclude it is pinned, when nothing asserts against it.

Shape of the cleanup

Drop the unused names from the import block (one mechanical edit), or add the missing acceptance assertions if any of these schemas are meant to be pinned here — that choice is per-name and belongs to whoever takes the card. Note the same census method applies to the other big acceptance files in packages/types/src/__tests__/ and was not run there; this card measured only phase2-schemas.test.ts.

Positive control on the same pipeline: the baseline lint run also flags nothing else in this file, and the count moved 10 → 9 exactly when one name was retired — the warnings track real imports, not lint noise.


Generated by Claude Code


Generated by Claude Code

Metadata

Metadata

Assignees

Labels

domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpm:dispatched

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions