Skip to content

SpyOn captureException no longer works in sentry/react 8 #12576

@mikecousins

Description

@mikecousins

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

const captureExceptionSpy = vi.spyOn(Sentry, 'captureException');

Expected Result

Works fine

Actual Result

TypeError: Cannot redefine property: captureException

Product Area

Unknown

Link

No response

DSN

No response

Version

8.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions