-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[coverage] ES6 import and Flow pragma have issues with coverage #2339
Comments
We use |
cc: @DmitriiAbramov |
unfortunately we instrument already transpiled code, so there can be a lot of invisible things that mess up the coverage report like that. |
@DmitriiAbramov, would it help if I ran the tests on the transpiled code and posted a screenshot of that instead? |
@migueloller i have an idea of what the resulting code looks like and there's nothing we can really do now. |
I haven't had any other coverage issues with other files. 😄 The screenshot I posted is a single file, it's just exporting some utilities as named exports for easier access. EDIT: For now I'm just ignoring that file specifically when generating coverage reports. |
@migueloller let's wait for #2290 and see if it fixes it :) |
@DmitriiAbramov, sounds good! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Using
jest@18.0.0
withbabel-jest@18.0.0
.Here is my
.babelrc
:Here is another screenshot but separating
import
andexport
into different lines:Any ideas what might be going on?
The text was updated successfully, but these errors were encountered: