Skip to content
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

fix(jest-runtime): only write map files to disk when mapCoverage: true #5117

Merged
merged 2 commits into from
Dec 18, 2017

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Dec 18, 2017

Summary
See #5109. This partially reverts #3458 to unblock.

A quick patch release might be a good idea

Test plan
The added assertion (on status 0) fails for the old code, as the integration test actually failed in the same way...

image

@SimenB
Copy link
Member Author

SimenB commented Dec 18, 2017

I'm not sure how to properly fix this yet, but I think we should unblock typescript users. I doubt anyone will have had the time to use the new code anyways

runJest(dir, ['--coverage', '--mapCoverage', '--no-cache']);
const result = runJest(dir, ['--coverage', '--mapCoverage', '--no-cache']);

expect(result.status).toBe(0);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this failed on the old code, so I don't think this worked properly anyways

@codecov-io
Copy link

codecov-io commented Dec 18, 2017

Codecov Report

Merging #5117 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5117      +/-   ##
=========================================
- Coverage   60.71%   60.7%   -0.01%     
=========================================
  Files         201     201              
  Lines        6690    6691       +1     
  Branches        4       4              
=========================================
  Hits         4062    4062              
  Misses       2628    2628              
- Partials        0       1       +1
Impacted Files Coverage Δ
packages/jest-runtime/src/script_transformer.js 84.52% <100%> (ø) ⬆️
integration_tests/coverage-remapping/covered.ts 85.71% <0%> (-14.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9afeb9c...e6769dc. Read the comment docs.

@cpojer
Copy link
Member

cpojer commented Dec 18, 2017

Can you file a task to fix the skipped test?

@cpojer cpojer merged commit 5b2ffb5 into jestjs:master Dec 18, 2017
@SimenB SimenB deleted the coverage-sourcemaps branch December 18, 2017 20:24
@SimenB
Copy link
Member Author

SimenB commented Dec 18, 2017

Done: #5121

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants