-
Notifications
You must be signed in to change notification settings - Fork 247
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
Async await support #321
Comments
As a workaround one can use https://github.com/istanbuljs/babel-plugin-istanbul for instrumenting the code and karma-coverage to make the coverage |
up |
@furstenheim Could you explain how you configured this plugin? |
@lucianolucianoluciano you can take a look at the karma conf of the project. It is actually quite simple. As a babel plugin you add istanbul and that will add the information for the coverageReporter. Don't forget to run
|
Are you planning to add async/await native support in karma-coverage ? I use them in my project without babel conversion, so it could be helpfull ! until then, il will drop karma-coverage and cross test with jest instead for coverage. |
To update the language support, istanbul needs to be updated to pull esprima 4.x. |
It maybe that Istanbul will not update the esprima version because |
should be done in version 2.X, fill free to reopen if still have a error |
Karma coverage is not able to parse files that contain async/await I get a parsing error:
ERROR [preprocessor.coverage]: Line 15: Unexpected token function
Thanks
The text was updated successfully, but these errors were encountered: