Skip to content

Sourcemaps are broken for JavaScript files imported by TypeScript files #485

@jamietre

Description

@jamietre
  • Issue

When running TypeScript tests, if an error occurs in a JavaScript dependency, the source map is not preserved; stack trace has line number in compiled code.

  • Expected behavior

Source maps always work.

  • Output from your debug log

none

  • Link to a minimal repo that reproduces this issue

https://github.com/jamietre/jest-source-map-problem/tree/20b8c62b45d19ca241b181f994d3bd6d3527fe69

Possibly related issue:

jestjs/jest#5925

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