-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display remapped coverage report in the terminal? #101
Comments
refer #42 (comment) . |
Thanks for the quick response. Sorry for the repeat question. |
I've been trying to wrap my head around the current status of this, and I thought it'd be a good idea to jot down my current conclusions (both to inform others, and to double-check any incorrect assumptions I've made). So, as far as I can tell, it is currently impossible for ts-jest to tell Jest what the correct coverage is (although it can output the correct coverage to the developer, [currently])(#61) in the However, a PR has been accepted into Jest that should make this possible in the future. If the developer enables the So for now, we'll have to wait for Jest 20, after which ts-jest can be extended to report the coverage back to Jest. As a workaround until that time, I've created a small CLI-tool that you can point at your remapped coverage report to pass or fail a CI build depending on whether thresholds are met. |
Thanks for the update and work around, much appreciated. |
Coverage is no longer handled by ts-jest (see #200) If this issue isn't addressed AND if you think the fix needs to be in ts-jest, feel free to either open a new issue or leave a comment here to reopen this. |
Thanks for the update on this issue @kulshekhar |
Unfortunately it does not work at the moment: #211 |
I apologize if I'm missing something obvious or if I'm repeating this issue.
Current Behavior
The remapped coverage works in the browser:
The terminal is displaying the unmapped coverage, look at "branch" and "uncovered lines":
jest config in package.json
Desired Behavior
Remapped coverage displays in the terminal.
What am I missing?
Thanks in advance.
The text was updated successfully, but these errors were encountered: