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: remove include prop from nyc config #9

Closed
wants to merge 1 commit into from

Conversation

mdonnalley
Copy link
Contributor

@W-11670631@

@mdonnalley mdonnalley self-assigned this Aug 30, 2022
Copy link
Member

@cristiand391 cristiand391 left a comment

Choose a reason for hiding this comment

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

Tested using plugin-alias, removed include prop from node_modules/@salesforce/dev-config/nyc.json and increased code cov to 100%, nyc still pass even though coverage is below 100%.

The only change needed is to remove the nyc prop from the .nycrc file in each repo, which dev-scripts does if you delete the .nycrc file and run yarn install, template: https://github.com/forcedotcom/dev-scripts/blob/main/files/nycrc

re: overriding settings
there's an open PR to fix this in nyc: istanbuljs/load-nyc-config#19

@mdonnalley
Copy link
Contributor Author

Tested using plugin-alias, removed include prop from node_modules/@salesforce/dev-config/nyc.json and increased code cov to 100%, nyc still pass even though coverage is below 100%.

The only change needed is to remove the nyc prop from the .nycrc file in each repo, which dev-scripts does if you delete the .nycrc file and run yarn install, template: https://github.com/forcedotcom/dev-scripts/blob/main/files/nycrc

re: overriding settings there's an open PR to fix this in nyc: istanbuljs/load-nyc-config#19

@cristiand391 interesting. It seems that our nyc-config works for some plugins (like plugin-alias) but not for others (like ones generated using plugin-dev)...

Guess I'll go back to the drawing board

@mdonnalley mdonnalley closed this Aug 31, 2022
@mdonnalley mdonnalley deleted the mdonnalley/fix-nyc branch August 31, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants