Skip to content

collectCoverage breaks TypeScript source stepping #5739

@mikebm

Description

@mikebm

Do you want to request a feature or report a bug?
BUG

What is the current behavior?
When collectCoverage is set to true, then source stepping no longer functions correctly.

Steps:
git clone https://github.com/mikebm/jestbug.git
cd jestbug
npm install
Debug the ./tests/component.test.ts file. Attempt to step through the executeSomeLogic call on test 'should return 5'.

What is the expected behavior?
When stepping through the executeSomeLogic function, your debugger should show the correct line that you are on.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

Node v8.9.0
Jest 22.4.2
npm 5.6.0

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