-
Notifications
You must be signed in to change notification settings - Fork 3
Test coverage shows untransformed output #1
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
Comments
My input is something likes:
And I got ouput likes:
@garthk Do you know the reason ? |
I'm afraid not, and I'm no longer working with TypeScript and Lab on a daily basis. |
I just looked into this issue since I was having it, myself, and it's a but in @hapijs/lab, not in lab-transform-typescript. Here's the gist of what's going on:
If time permits (it probably won't) I would like to submit a PR to HapiJS to improve their code coverage tool. In the mean time, I found a workaround: update your tsconfig.json file and set the target to "es2017". This will use native generators, the native await keyword, and other ES6 features that TypeScript was otherwise polyfilling. Doing so does mean your code will require NodeJS 10 or later, so if that's an issue then you'll have to live with lying code coverage errors. |
I'm not yet sure whether this is a bug in
lab-transform-typescript
orlab
itself. As originally raised in hapijs/lab#614:The text was updated successfully, but these errors were encountered: