Skip to content

jest.mock() calls underneath the code mangle the stacktraces #240

Closed
@GeeWee

Description

@GeeWee
  • Issue

If you place code that is hoisted, such as jest.mock() calls, underneath your tests, the stacktrace line numbers are off.

Issue raised in #239 - more details there.

Workaround is to place the mock calls before any actual test code.

This bug is considered low priority.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions