Skip to content

Jest tests display wrong line numbers when pem library (version 1.14.7 or 1.14.8) is added to project #389

@josephmfaulkner

Description

@josephmfaulkner

It looks like the pem library is causing Jest tests to report the wrong line numbers for failed tests.

Initially, Jest displays the correct line that causes test to fail for a simple test.
SCREENSHOT-correct-line-reported

When pem is added to the project (uncomment out the first line on testedComponent.js), jest now reports the same failed test on the wrong line number.
SCREENSHOT-wrong-line-reported

This issue seems to have been present in the project since version 1.14.7
It doesn't reproduce for version 1.14.6 and below.

I've created a simple repository that reproduces this issue: https://github.com/josephmfaulkner/reproduce-jest-line-num-issue-when-using-pem

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