Skip to content

test: remove two more vacuous integration tests (mock-only)#180

Merged
TortoiseWolfe merged 1 commit into
mainfrom
chore/remove-vacuous-integration-tests
Jul 5, 2026
Merged

test: remove two more vacuous integration tests (mock-only)#180
TortoiseWolfe merged 1 commit into
mainfrom
chore/remove-vacuous-integration-tests

Conversation

@TortoiseWolfe

Copy link
Copy Markdown
Owner

What

Deletes src/tests/integration/auto-generation.test.ts (261 lines, 11 tests) and enhanced-processing.test.ts (637 lines, 21 tests) — 898 lines of false-coverage tests.

Why

Same pattern as the migration test removed in #179 (flagged there as a follow-up scoping decision): both files import zero application source and assert against inline mock objects they construct themselves (mockFileWatcher, local RemarkResult/RehypeResult interfaces). They test their own mocks, not the codebase — they pass regardless of what ships, so they imply coverage of a content-processing pipeline that isn't exercised at all.

After this, src/tests/integration/ contains only payment-isolation.test.ts, which is a real test (imports @/lib/supabase/types, exercises actual RLS isolation).

Verification

  • No dangling references to either file (not in config/CI — glob-picked only).
  • pnpm type-check clean.
  • vitest list still collects the suite (3570 test descriptions).

Follow-up to #179.

🤖 Generated with Claude Code

…orts)

auto-generation.test.ts (261 lines, 11 tests) and enhanced-processing.test.ts
(637 lines, 21 tests) are the same false-coverage pattern as the migration test
removed in #179: they import ZERO application source and assert against inline
mock objects they define themselves (mockFileWatcher, local RemarkResult/
RehypeResult interfaces). They test the tests' own mocks, not the codebase —
green regardless of what ships. Delete rather than keep coverage that guards
nothing.

This leaves src/tests/integration/ with only payment-isolation.test.ts, which
is real (imports @/lib/supabase/types and exercises actual RLS behavior).

Follow-up to #179 (flagged there as a scoping decision).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TortoiseWolfe TortoiseWolfe merged commit 4f32c1c into main Jul 5, 2026
18 checks passed
@TortoiseWolfe TortoiseWolfe deleted the chore/remove-vacuous-integration-tests branch July 5, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants