Skip to content

test(compliance): hud-only preservation test is vacuous — bad precedent for tracker #348

Description

@dean0x

Finding

tests/init-logic.test.ts:1807-1815 re-implements the ?? expression inside the test body and asserts the formatter, never touching src/cli/commands/init.ts — a vacuous test (PF-018).

Why deferred

Pre-existing; the file is not touched by PR #344. Flagged because it concerns the COMPLIANCE hud-only preservation path, and is exactly the bad precedent a contributor would copy when writing the tracker equivalent. PR #344's own testing-04 finding builds the executable-coverage pattern needed for the tracker case; applying that same fix to the compliance test is compliance-scoped work, out of scope here.

Suggested fix

Rewrite the test to exercise src/cli/commands/init.ts's actual hud-only preservation branch rather than re-implementing the ?? expression under test.

References

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

    tech-debtTechnical debt items to address

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions