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

Set coverageDirectory during normalize phase #3966

Merged
merged 2 commits into from
Jul 5, 2017

Conversation

thymikee
Copy link
Collaborator

@thymikee thymikee commented Jul 4, 2017

Summary

Fixes #3955.

Test plan

Added a test, update existing one.

@@ -61,7 +62,7 @@ it('is not valid when it is a snapshot file', () => {
it('is not valid when it is a file in the coverage dir', () => {
expect(
isValidPath(
{},
normalize({rootDir}, {}).options,
config,
path.resolve(rootDir, 'coverage', 'lib', 'index.js'),
),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if we still need this test. The same thing is tested in normalize.test.js

@cpojer
Copy link
Member

cpojer commented Jul 4, 2017

Everything is failing!

@thymikee
Copy link
Collaborator Author

thymikee commented Jul 4, 2017

Relax, take it easy :) Fixing in a minute

@codecov-io
Copy link

Codecov Report

Merging #3966 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3966      +/-   ##
==========================================
+ Coverage   59.86%   59.87%   +<.01%     
==========================================
  Files         196      196              
  Lines        6763     6764       +1     
  Branches        6        6              
==========================================
+ Hits         4049     4050       +1     
  Misses       2711     2711              
  Partials        3        3
Impacted Files Coverage Δ
packages/jest-cli/src/lib/is_valid_path.js 100% <ø> (ø) ⬆️
packages/jest-config/src/normalize.js 85.54% <100%> (+0.16%) ⬆️

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 b079d2a...648ff7d. Read the comment docs.

@cpojer cpojer merged commit a7acc5a into jestjs:master Jul 5, 2017
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
* Set coverageDirectory during normalize phase

* Update config snapshot
@thymikee thymikee deleted the default-coveragedir branch March 16, 2019 10:55
@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 11, 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.

coverageDirectory should be specified by default
4 participants