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.
I'm not yet sure whether this is a bug in
lab-transform-typescriptorlabitself. As originally raised in hapijs/lab#614: