Skip to content

Test coverage shows untransformed output #1

Open
@garthk

Description

@garthk

I'm not yet sure whether this is a bug in lab-transform-typescript or lab itself. As originally raised in hapijs/lab#614:

lab -T test/lib/transform-tsc.js test -v -S -c -r html -o cov.html produces a coverage file with:

  • Correct test results
  • Correct pre-transform filenames, e.g. index.ts in the navigation bar and code coverage report headers
  • Correct coverage information, e.g. reporting "condition always false"
  • The post-transform file contents, not the expected pre-transform file contents

lab -T test/lib/transform-tsc.js test -v -S with a failing test produces correct line numbers for pre-transformed code.

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