Skip to content

fix: Replaced hardcoded.nyc_output string to one from config #332

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

Merged
merged 5 commits into from
Nov 23, 2020

Conversation

akoidan
Copy link
Contributor

@akoidan akoidan commented Nov 7, 2020

Atm code-coverage doesn't respect nyc config file like .nycrc.json. So it's impossible to change nyc json coverage object location by using this package.

This PR changed location of temp-dir to the one that's specified in config file and if it's absent falls back to hardcoded .nyc_output

akoidan added a commit to akoidan/vue-webpack-typescript that referenced this pull request Nov 7, 2020
…s/code-coverage 3.x they seem to fixed most hardoded things, but `temp-dir` in `.nycrc.json`, so I forked their repo and added pr cypress-io/code-coverage#332 so it can be updated in package.json on next release if this happens

tsconfig.json should not have 'sourceMap', seems like cypress adds 'inlineSourceMap' on top of my config which causes `TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.` If in future adding this option doesn't cause `yarn test:cypress:run` to fail, it can be restored
@akoidan
Copy link
Contributor Author

akoidan commented Nov 17, 2020

What's the status of this PR? Any reason not to merge it?

@bahmutov
Copy link
Contributor

I think this PR is ok to merge, would be nice to have a dedicated example test, but the existing examples seem to still be working

@bahmutov bahmutov changed the title Replaced hardcoded.nyc_output string to one from config fix: Replaced hardcoded.nyc_output string to one from config Nov 23, 2020
@bahmutov bahmutov merged commit ae60c8d into cypress-io:master Nov 23, 2020
@bahmutov
Copy link
Contributor

🎉 This PR is included in version 3.8.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

akoidan added a commit to akoidan/vue-webpack-typescript that referenced this pull request Nov 23, 2020
Merged PR cypress-io/code-coverage#332 so updated to main package istead of mine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants