Skip to content

test(verify): add scrubbers for dynamic snapshot values #263

Description

@j-d-ha

Problem

Verify tests currently require custom scrubbing logic for values that change from request to request, making them fragile and requiring manual maintenance. This includes:

  • Interceptable location information
  • Version numbers (e.g., "given version")
  • Other request-specific dynamic values

Proposed Solution

Implement standardized scrubbers in verify tests to automatically remove or normalize dynamic values that change between test runs. This will:

  • Reduce custom scrubbing code per test
  • Make verify snapshots more stable
  • Improve accuracy by reducing manual intervention
  • Make tests easier to maintain

Acceptance Criteria

  • Identify all dynamic values that need scrubbing across verify tests
  • Implement reusable scrubbers for common patterns (interceptable location, versions, etc.)
  • Apply scrubbers to existing verify tests
  • Verify that snapshots are stable across multiple test runs
  • Remove custom scrubbing logic that's no longer needed

Additional Context

The goal is to minimize the amount of custom configuration needed per test while making the verify snapshots more accurate and reliable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions