Skip to content

Harden Jest setup to avoid leaking mocks between tests #40

@grmbyrn

Description

@grmbyrn

Title: Harden Jest setup to avoid leaking mocks between tests

Description:
Current tests override global.fetch in many places and may leak mocks across tests.

Acceptance criteria:

  • Update jest.setup.ts to call jest.restoreAllMocks() / jest.resetAllMocks() appropriately between tests.
  • Add afterEach cleanup hooks in tests that mock global state.
  • Ensure CI runs tests with isolated environment.

Labels: testing
Priority: medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions