Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

code coverage should go back to original ts code #17

Closed
jspaaks opened this issue Nov 3, 2016 · 4 comments
Closed

code coverage should go back to original ts code #17

jspaaks opened this issue Nov 3, 2016 · 4 comments
Assignees

Comments

@jspaaks
Copy link

jspaaks commented Nov 3, 2016

see also #15, #6

@jspaaks
Copy link
Author

jspaaks commented Nov 3, 2016

stacktraces should also give pointers to original code

@sverhoeven
Copy link
Member

Tested with class with 2 functions and testing one of them. Sadly reported coverage is incorrect.

@jspaaks jspaaks changed the title code coverage goes back to original ts code code coverage should go back to original ts code Nov 8, 2016
@sverhoeven
Copy link
Member

See if https://github.com/kulshekhar/ts-jest works.
Seems it doesn't transpile ts>babel, but only ts, which might also work.

@sverhoeven
Copy link
Member

The coverage can be generated with

CI=1 npm test -- --coverage --no-cache

The coverage can be found at coverage/remapped/html/index.html.

Not sure if transpile pipeline ts>babel>js gets correct coverage.
My tests in https://github.com/3D-e-Chem/molviewer-tsx report the correct coverage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants