Skip to content

Test coverage shows untransformed output #614

@garthk

Description

@garthk

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.

Reproduction repository: garthk/lab-coverage-vs-sourcemaps-typescript-edition

See also: #338

I'm hoping this is a configuration problem, in which case I'm happy to have pitched in with typings for code and lab and a skeleton project for anyone trying to drive them from TypeScript and Visual Studio Code.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions